Fetch on resync

This commit is contained in:
M66B 2019-11-02 17:03:36 +01:00
parent b28f05eb1f
commit 80b27ce822
1 changed files with 6 additions and 1 deletions

View File

@ -3275,9 +3275,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
EntityMessage message = db.message().getMessage(id);
if (message == null || message.uid == null)
return null;
EntityFolder folder = db.folder().getFolder(message.folder);
if (folder == null)
return null;
db.message().deleteMessage(id);
EntityOperation.sync(context, message.folder, true);
EntityOperation.queue(context, folder, EntityOperation.FETCH, message.uid);
db.setTransactionSuccessful();
} finally {