Asymmetric seen/flag

This commit is contained in:
M66B 2021-10-26 09:09:40 +02:00
parent dc5aa24b24
commit b7ede2cf50
1 changed files with 6 additions and 5 deletions

View File

@ -3032,19 +3032,20 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
result.visible && result.hidden)
continue;
if (message.ui_seen)
result.seen = true;
if (!message.ui_flagged)
result.unflagged = true;
List<EntityMessage> messages = db.message().getMessagesByThread(
message.account, message.thread, threading ? null : id, null);
for (EntityMessage threaded : messages) {
if (threaded.folder.equals(message.folder))
if (threaded.ui_seen)
result.seen = true;
else
if (!threaded.ui_seen)
result.unseen = true;
if (threaded.ui_flagged)
result.flagged = true;
else
result.unflagged = true;
int i = (message.importance == null ? EntityMessage.PRIORITIY_NORMAL : message.importance);
if (result.importance == null)