mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Fixed timing issues
This commit is contained in:
@@ -461,14 +461,16 @@ public class ServiceSend extends ServiceBase {
|
||||
EntityOperation.queue(this, orphan, EntityOperation.EXISTS);
|
||||
}
|
||||
|
||||
// Reset identity
|
||||
db.identity().setIdentityConnected(ident.id, new Date().getTime());
|
||||
db.identity().setIdentityError(ident.id, null);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
// Reset identity
|
||||
db.identity().setIdentityConnected(ident.id, new Date().getTime());
|
||||
db.identity().setIdentityError(ident.id, null);
|
||||
ServiceSynchronize.eval(ServiceSend.this, false, "sent");
|
||||
|
||||
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
nm.cancel("send:" + message.identity, 1);
|
||||
|
||||
Reference in New Issue
Block a user