Limit prev/next fallback size

pull/194/merge
M66B 3 years ago
parent 5719d793ba
commit 1abfdb7e06

@ -367,6 +367,9 @@ public class ViewModelMessages extends ViewModel {
for (int j = 0; j < messages.size(); j++) for (int j = 0; j < messages.size(); j++)
if (messages.get(j).id == id) if (messages.get(j).id == id)
return getPair(plist, ds, count, i + j); return getPair(plist, ds, count, i + j);
if (lpos < 0 && i == 500 && count > 1000)
i = count - 500;
} }
Log.i("Observe previous/next message not found" + Log.i("Observe previous/next message not found" +

Loading…
Cancel
Save