|
|
@ -792,9 +792,9 @@ public interface DaoMessage {
|
|
|
|
" AND id NOT IN (" +
|
|
|
|
" AND id NOT IN (" +
|
|
|
|
" SELECT id FROM message" +
|
|
|
|
" SELECT id FROM message" +
|
|
|
|
" WHERE folder = :folder" +
|
|
|
|
" WHERE folder = :folder" +
|
|
|
|
" ORDER BY received DESC" +
|
|
|
|
" ORDER BY CASE WHEN :reversed THEN -received ELSE received END DESC" +
|
|
|
|
" LIMIT :keep)")
|
|
|
|
" LIMIT :keep)")
|
|
|
|
int setMessagesUiHide(long folder, int keep);
|
|
|
|
int setMessagesUiHide(long folder, int keep, boolean reversed);
|
|
|
|
|
|
|
|
|
|
|
|
@Transaction
|
|
|
|
@Transaction
|
|
|
|
@Query("UPDATE message SET ui_ignored = :ui_ignored WHERE id = :id AND NOT (ui_ignored IS :ui_ignored)")
|
|
|
|
@Query("UPDATE message SET ui_ignored = :ui_ignored WHERE id = :id AND NOT (ui_ignored IS :ui_ignored)")
|
|
|
@ -1018,7 +1018,7 @@ public interface DaoMessage {
|
|
|
|
" AND id NOT IN (" +
|
|
|
|
" AND id NOT IN (" +
|
|
|
|
" SELECT id FROM message" +
|
|
|
|
" SELECT id FROM message" +
|
|
|
|
" WHERE folder = :folder" +
|
|
|
|
" WHERE folder = :folder" +
|
|
|
|
" ORDER BY received DESC" +
|
|
|
|
" ORDER BY CASE WHEN :reversed THEN -received ELSE received END DESC" +
|
|
|
|
" LIMIT :keep)")
|
|
|
|
" LIMIT :keep)")
|
|
|
|
int deleteMessagesKeep(long folder, int keep);
|
|
|
|
int deleteMessagesKeep(long folder, int keep, boolean reversed);
|
|
|
|
}
|
|
|
|
}
|