1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Fixed previous/next with unseen filter

This commit is contained in:
M66B 2020-06-30 18:36:33 +02:00
parent bb5c5c7de8
commit 9d5a8b0351

View file

@ -264,6 +264,8 @@ public class ViewModelMessages extends ViewModel {
for (int pos = 0; pos < messages.size(); pos++) {
TupleMessageEx item = messages.get(pos);
if (item != null && id == item.id) {
fallback = true;
if (pos - 1 >= 0) {
TupleMessageEx next = messages.get(pos - 1);
intf.onNext(true, next == null ? null : next.id);