Unhide messages on quick sync

This commit is contained in:
M66B 2021-04-12 12:49:46 +02:00
parent 79f484f969
commit d48d6650a0
2 changed files with 3 additions and 8 deletions

View File

@ -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;

View File

@ -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" +