Improved keyword management / keyword colors

This commit is contained in:
M66B
2020-01-27 22:43:46 +01:00
parent 46f23faf9a
commit 918bc628c6
9 changed files with 597 additions and 145 deletions

View File

@@ -315,6 +315,12 @@ public interface DaoMessage {
" WHERE message.id = :id")
LiveData<TupleMessageEx> liveMessage(long id);
@Query("SELECT message.keywords AS selected, folder.keywords AS available" +
" FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE message.id = :id")
LiveData<TupleKeyword.Persisted> liveMessageKeywords(long id);
@Transaction
@Query("SELECT account.id AS account, COUNT(message.id) AS unseen, SUM(ABS(notifying)) AS notifying" +
" FROM message" +