mirror of https://github.com/M66B/FairEmail.git
Asymmetric seen/flag
This commit is contained in:
parent
dc5aa24b24
commit
b7ede2cf50
|
@ -3032,19 +3032,20 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
result.visible && result.hidden)
|
result.visible && result.hidden)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (message.ui_seen)
|
||||||
|
result.seen = true;
|
||||||
|
if (!message.ui_flagged)
|
||||||
|
result.unflagged = true;
|
||||||
|
|
||||||
List<EntityMessage> messages = db.message().getMessagesByThread(
|
List<EntityMessage> messages = db.message().getMessagesByThread(
|
||||||
message.account, message.thread, threading ? null : id, null);
|
message.account, message.thread, threading ? null : id, null);
|
||||||
for (EntityMessage threaded : messages) {
|
for (EntityMessage threaded : messages) {
|
||||||
if (threaded.folder.equals(message.folder))
|
if (threaded.folder.equals(message.folder))
|
||||||
if (threaded.ui_seen)
|
if (!threaded.ui_seen)
|
||||||
result.seen = true;
|
|
||||||
else
|
|
||||||
result.unseen = true;
|
result.unseen = true;
|
||||||
|
|
||||||
if (threaded.ui_flagged)
|
if (threaded.ui_flagged)
|
||||||
result.flagged = true;
|
result.flagged = true;
|
||||||
else
|
|
||||||
result.unflagged = true;
|
|
||||||
|
|
||||||
int i = (message.importance == null ? EntityMessage.PRIORITIY_NORMAL : message.importance);
|
int i = (message.importance == null ? EntityMessage.PRIORITIY_NORMAL : message.importance);
|
||||||
if (result.importance == null)
|
if (result.importance == null)
|
||||||
|
|
Loading…
Reference in New Issue