Fixed previous/next with unseen filter

pull/183/head
M66B 5 years ago
parent bb5c5c7de8
commit 9d5a8b0351

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

Loading…
Cancel
Save