mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Moved updating contact info after database transaction
This commit is contained in:
parent
a6cb93fc47
commit
384e93c47e
1 changed files with 6 additions and 6 deletions
|
@ -1283,18 +1283,18 @@ class Core {
|
|||
attachment.id = db.attachment().insertAttachment(attachment);
|
||||
}
|
||||
|
||||
if (message.received > account.created &&
|
||||
!EntityFolder.ARCHIVE.equals(folder.type) &&
|
||||
!EntityFolder.TRASH.equals(folder.type) &&
|
||||
!EntityFolder.JUNK.equals(folder.type))
|
||||
updateContactInfo(context, folder, message);
|
||||
|
||||
runRules(context, imessage, message, rules);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
if (message.received > account.created &&
|
||||
!EntityFolder.ARCHIVE.equals(folder.type) &&
|
||||
!EntityFolder.TRASH.equals(folder.type) &&
|
||||
!EntityFolder.JUNK.equals(folder.type))
|
||||
updateContactInfo(context, folder, message);
|
||||
} else {
|
||||
if (!message.seen.equals(seen) || !message.seen.equals(message.ui_seen)) {
|
||||
update = true;
|
||||
|
|
Loading…
Reference in a new issue