1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 21:55:13 +00:00

Skip expanding first draft

This commit is contained in:
M66B 2021-04-07 07:29:52 +02:00
parent 6e2a01c9bb
commit b7d228cbe1

View file

@ -4925,7 +4925,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
else if (messages.size() > 0) {
TupleMessageEx first = messages.get(adapter.getAscending() ? messages.size() - 1 : 0);
if (first != null &&
((expand_first && unseen == 0) || EntityFolder.OUTBOX.equals(first.folderType)))
(EntityFolder.OUTBOX.equals(first.folderType) ||
(expand_first && unseen == 0 && !EntityFolder.DRAFTS.equals(first.folderType))))
expand = first;
}