mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Monitor deleted selected messages
This commit is contained in:
@@ -244,13 +244,6 @@ public interface DaoMessage {
|
||||
" GROUP BY account.id")
|
||||
LiveData<TupleThreadStats> liveThreadStats(long account, String thread, Long id, boolean filter_archive);
|
||||
|
||||
@Query("SELECT message.id FROM folder" +
|
||||
" JOIN message ON message.folder = folder.id" +
|
||||
" WHERE ((:folder IS NULL AND :type IS NULL AND folder.unified)" +
|
||||
" OR folder.type = :type OR folder.id = :folder)" +
|
||||
" AND ui_hide")
|
||||
LiveData<List<Long>> liveHiddenFolder(Long folder, String type);
|
||||
|
||||
@Query("SELECT id FROM message" +
|
||||
" WHERE account = :account" +
|
||||
" AND thread = :thread" +
|
||||
@@ -366,6 +359,10 @@ public interface DaoMessage {
|
||||
" AND msgid = :msgid")
|
||||
int countMessageByMsgId(long folder, String msgid);
|
||||
|
||||
@Query("SELECT COUNT(*) FROM message" +
|
||||
" WHERE id = :id AND NOT ui_hide")
|
||||
int countVisible(long id);
|
||||
|
||||
@Query("SELECT message.*" +
|
||||
", account.pop AS accountProtocol, account.name AS accountName, identity.color AS accountColor" +
|
||||
", account.notify AS accountNotify, account.auto_seen AS accountAutoSeen" +
|
||||
|
||||
Reference in New Issue
Block a user