Always load content on expand

pull/146/head
M66B 6 years ago
parent e0a3ea189e
commit d8c6882b8f

@ -884,7 +884,6 @@ public class FragmentMessages extends FragmentEx {
if (expand != null) {
expanded.add(expand.id);
if (!expand.ui_seen)
handleExpand(expand.id);
}
}
@ -927,15 +926,13 @@ public class FragmentMessages extends FragmentEx {
EntityMessage message = db.message().getMessage(id);
EntityFolder folder = db.folder().getFolder(message.folder);
if (!EntityFolder.OUTBOX.equals(folder.type)) {
if (!message.content)
EntityOperation.queue(db, message, EntityOperation.BODY);
if (!message.ui_seen) {
if (!message.ui_seen && !EntityFolder.OUTBOX.equals(folder.type)) {
db.message().setMessageUiSeen(message.id, true);
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
}
}
db.setTransactionSuccessful();
} finally {

Loading…
Cancel
Save