mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 09:17:58 +00:00
Run exists last on sent
This commit is contained in:
parent
d24fb17cb2
commit
283508c441
1 changed files with 6 additions and 4 deletions
|
@ -435,10 +435,6 @@ public class ServiceSend extends ServiceBase {
|
|||
db.message().setMessageSize(sid, size, total);
|
||||
db.message().setMessageSent(sid, time);
|
||||
db.message().setMessageUiHide(sid, false);
|
||||
|
||||
// Check for sent orphans
|
||||
EntityMessage orphan = db.message().getMessage(sid);
|
||||
EntityOperation.queue(this, orphan, EntityOperation.EXISTS);
|
||||
}
|
||||
|
||||
if (message.inreplyto != null) {
|
||||
|
@ -447,6 +443,12 @@ public class ServiceSend extends ServiceBase {
|
|||
EntityOperation.queue(this, replied, EntityOperation.ANSWERED, true);
|
||||
}
|
||||
|
||||
if (sid != null) {
|
||||
// Check for sent orphans
|
||||
EntityMessage orphan = db.message().getMessage(sid);
|
||||
EntityOperation.queue(this, orphan, EntityOperation.EXISTS);
|
||||
}
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
|
|
Loading…
Reference in a new issue