Skip duplicate messages for scroll to top

This commit is contained in:
M66B 2019-10-23 09:10:49 +02:00
parent 0c0f88b2e5
commit dd593ce56a
1 changed files with 2 additions and 2 deletions

View File

@ -3607,7 +3607,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)
if (message != null && !message.ui_seen && !message.ui_ignored && !message.duplicate)
prev++;
}
@ -3615,7 +3615,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)
if (message != null && !message.ui_seen && !message.ui_ignored && !message.duplicate)
cur++;
}