1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Fixed setting added uids

This commit is contained in:
M66B 2019-10-13 12:35:45 +02:00
parent 0215b97cea
commit 75213f93da

View file

@ -736,7 +736,7 @@ class Core {
if (folder.id.equals(message.folder)) {
// Some providers do not list the new message yet
Long newuid = findUid(ifolder, message.msgid, true);
if (message.uid != null && newuid != null && newuid > message.uid) {
if (newuid != null && (message.uid == null || newuid > message.uid)) {
message.uid = newuid;
Log.i(folder.name + " appended uid=" + message.uid);
db.message().setMessageUid(message.id, message.uid);