Small improvement

This commit is contained in:
M66B 2019-01-19 13:38:46 +00:00
parent 90dfa48ed7
commit bd1c741f2e
1 changed files with 5 additions and 4 deletions

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);