mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Scroll to top on new unread messages only
This commit is contained in:
parent
170bf25176
commit
b1a69ba402
1 changed files with 2 additions and 2 deletions
|
@ -3614,7 +3614,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (autoscroll && previousList != null)
|
||||
for (int i = 0; i < previousList.size(); i++) {
|
||||
TupleMessageEx message = previousList.get(i);
|
||||
if (message != null && !message.ui_seen && !message.ui_ignored && !message.duplicate)
|
||||
if (message != null && !message.ui_seen && !message.duplicate)
|
||||
prev++;
|
||||
}
|
||||
|
||||
|
@ -3622,7 +3622,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (autoscroll && currentList != null)
|
||||
for (int i = 0; i < currentList.size(); i++) {
|
||||
TupleMessageEx message = currentList.get(i);
|
||||
if (message != null && !message.ui_seen && !message.ui_ignored && !message.duplicate)
|
||||
if (message != null && !message.ui_seen && !message.duplicate)
|
||||
cur++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue