|
|
@ -1585,17 +1585,18 @@ public class FragmentMessages extends FragmentEx {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
db.beginTransaction();
|
|
|
|
db.beginTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
for (EntityMessage message : db.message().getMessageSeen(outbox)) {
|
|
|
|
for (EntityMessage message : db.message().getMessageSeen(outbox))
|
|
|
|
EntityIdentity identity = db.identity().getIdentity(message.identity);
|
|
|
|
if (message.identity != null) {
|
|
|
|
EntityFolder sent = db.folder().getFolderByType(identity.account, EntityFolder.SENT);
|
|
|
|
EntityIdentity identity = db.identity().getIdentity(message.identity);
|
|
|
|
if (sent != null) {
|
|
|
|
EntityFolder sent = db.folder().getFolderByType(identity.account, EntityFolder.SENT);
|
|
|
|
message.folder = sent.id;
|
|
|
|
if (sent != null) {
|
|
|
|
message.uid = null;
|
|
|
|
message.folder = sent.id;
|
|
|
|
db.message().updateMessage(message);
|
|
|
|
message.uid = null;
|
|
|
|
Log.i("Appending sent msgid=" + message.msgid);
|
|
|
|
db.message().updateMessage(message);
|
|
|
|
EntityOperation.queue(db, message, EntityOperation.ADD); // Could already exist
|
|
|
|
Log.i("Appending sent msgid=" + message.msgid);
|
|
|
|
|
|
|
|
EntityOperation.queue(db, message, EntityOperation.ADD); // Could already exist
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|