Limit number of records for widget

pull/160/head
M66B 5 years ago
parent b5613e46a6
commit d89b6f86bc

@ -278,7 +278,8 @@ public interface DaoMessage {
" AND (NOT :unseen OR NOT message.ui_seen)" +
" AND (NOT :flagged OR message.ui_flagged)" +
" GROUP BY account.id, CASE WHEN message.thread IS NULL THEN message.id ELSE message.thread END" +
" ORDER BY message.received DESC";
" ORDER BY message.received DESC" +
" LIMIT 50";
@Query(widget)
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH)

Loading…
Cancel
Save