Skip finding indexed hidden messages

pull/208/head
M66B 2 years ago
parent 2ceea59c3a
commit a1288aa3df

@ -299,7 +299,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
for (; state.index < state.ids.size() && found < pageSize && !state.destroyed; state.index++) { for (; state.index < state.ids.size() && found < pageSize && !state.destroyed; state.index++) {
long id = state.ids.get(state.index); long id = state.ids.get(state.index);
EntityMessage message = db.message().getMessage(id); EntityMessage message = db.message().getMessage(id);
if (message == null) if (message == null || message.ui_hide)
continue; continue;
if (criteria.with_unseen) { if (criteria.with_unseen) {

Loading…
Cancel
Save