mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Small behavior improvement
This commit is contained in:
@@ -157,11 +157,14 @@ public class EntityOperation {
|
||||
" target=" + target.id + ":" + target.name +
|
||||
" auto read=" + autoread + " flag=" + autounflag);
|
||||
|
||||
if (autoread)
|
||||
db.message().setMessageUiSeen(message.id, true);
|
||||
if (autoread || autounflag)
|
||||
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid)) {
|
||||
if (autoread)
|
||||
db.message().setMessageUiSeen(similar.id, true);
|
||||
if (autounflag)
|
||||
db.message().setMessageUiFlagged(similar.id, false, null);
|
||||
}
|
||||
|
||||
if (autounflag)
|
||||
db.message().setMessageUiFlagged(message.id, false, null);
|
||||
|
||||
if (!EntityFolder.ARCHIVE.equals(source.type) ||
|
||||
EntityFolder.TRASH.equals(target.type) || EntityFolder.JUNK.equals(target.type))
|
||||
|
||||
@@ -2325,7 +2325,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
return;
|
||||
|
||||
int unseen = stats.count - stats.seen;
|
||||
setSubtitle(getString(R.string.title_name_count, stats.accountName, NF.format(unseen)));
|
||||
if (unseen == 0)
|
||||
setSubtitle(stats.accountName);
|
||||
else
|
||||
setSubtitle(getString(R.string.title_name_count, stats.accountName, NF.format(unseen)));
|
||||
}
|
||||
});
|
||||
db.message().liveHiddenThread(account, thread).observe(getViewLifecycleOwner(), new Observer<List<Long>>() {
|
||||
|
||||
Reference in New Issue
Block a user