mirror of https://github.com/M66B/FairEmail.git
Unhide messages on quick sync
This commit is contained in:
parent
79f484f969
commit
d48d6650a0
|
@ -2595,8 +2595,9 @@ class Core {
|
|||
try {
|
||||
for (int i = 0; i < imessages.length && state.isRunning() && state.isRecoverable(); i++) {
|
||||
long uid = ifolder.getUID(imessages[i]);
|
||||
ids[i] = db.message().getMessageMsgIdByUid(folder.id, uid);
|
||||
if (ids[i] == null) {
|
||||
EntityMessage message = db.message().getMessageByUid(folder.id, uid);
|
||||
ids[i] = (message == null ? null : message.id);
|
||||
if (message == null || message.ui_hide) {
|
||||
Log.i(folder.name + " missing uid=" + uid);
|
||||
modified = true;
|
||||
break;
|
||||
|
|
|
@ -296,12 +296,6 @@ public interface DaoMessage {
|
|||
" AND uid = :uid")
|
||||
EntityMessage getMessageByUid(long folder, long uid);
|
||||
|
||||
@Query("SELECT id" +
|
||||
" FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND uid = :uid")
|
||||
Long getMessageMsgIdByUid(long folder, long uid);
|
||||
|
||||
@Query("SELECT id" +
|
||||
" FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
|
|
Loading…
Reference in New Issue