Browse Source

Append sent messages

Fixes #29
main
M66B 6 years ago
parent
commit
dfc30a8436
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 6
- 2
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -967,13 +967,17 @@ public class ServiceSynchronize extends LifecycleService {
message.ui_seen = true;
db.message().updateMessage(message);
//if (sent != null)
// EntityOperation.queue(db, message, EntityOperation.ADD); // Could already exist
if (sent != null) {
Log.i(Helper.TAG, "Appending sent msgid=" + message.msgid);
EntityOperation.queue(db, message, EntityOperation.ADD); // Could already exist
}
db.setTransactionSuccessful();
} finally {
db.endTransaction();
}
EntityOperation.process(this);
} catch (MessagingException ex) {
db.identity().setIdentityError(ident.id, Helper.formatThrowable(ex));
throw ex;


Loading…
Cancel
Save