|
|
|
@ -713,12 +713,10 @@ public class FragmentMessage extends FragmentEx {
|
|
|
|
|
db.beginTransaction();
|
|
|
|
|
|
|
|
|
|
EntityMessage message = db.message().getMessage(id);
|
|
|
|
|
for (EntityMessage tmessage : db.message().getMessageByThread(message.account, message.thread))
|
|
|
|
|
if (message.uid != null) { // Skip drafts and outbox
|
|
|
|
|
db.message().setMessageUiSeen(tmessage.id, !message.ui_seen);
|
|
|
|
|
|
|
|
|
|
EntityOperation.queue(db, tmessage, EntityOperation.SEEN, !tmessage.ui_seen);
|
|
|
|
|
}
|
|
|
|
|
for (EntityMessage tmessage : db.message().getMessageByThread(message.account, message.thread)) {
|
|
|
|
|
db.message().setMessageUiSeen(tmessage.id, !message.ui_seen);
|
|
|
|
|
EntityOperation.queue(db, tmessage, EntityOperation.SEEN, !tmessage.ui_seen);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
|
} finally {
|
|
|
|
|