Scroll to top on new unread messages only

pull/164/head
M66B 5 years ago
parent 170bf25176
commit b1a69ba402

@ -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…
Cancel
Save