1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Small improvement

This commit is contained in:
M66B 2019-01-19 13:38:46 +00:00
parent 90dfa48ed7
commit bd1c741f2e

View file

@ -1788,10 +1788,6 @@ public class ServiceSynchronize extends LifecycleService {
}
db.identity().setIdentityState(ident.id, "connected");
db.identity().setIdentityError(ident.id, null);
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("send", message.identity.intValue());
// Send message
Address[] to = imessage.getAllRecipients();
@ -1799,6 +1795,11 @@ public class ServiceSynchronize extends LifecycleService {
EntityLog.log(this, "Sent via " + ident.host + "/" + ident.user +
" to " + TextUtils.join(", ", to));
db.identity().setIdentityError(ident.id, null);
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("send", message.identity.intValue());
// Append replied/forwarded text
if (message.replying != null || message.forwarding != null) {
String html = message.read(this);