|
|
@ -300,7 +300,7 @@ public interface DaoMessage {
|
|
|
|
" WHERE message.id = :id")
|
|
|
|
" WHERE message.id = :id")
|
|
|
|
LiveData<TupleMessageEx> liveMessage(long id);
|
|
|
|
LiveData<TupleMessageEx> liveMessage(long id);
|
|
|
|
|
|
|
|
|
|
|
|
@Query("SELECT account.id, COUNT(message.id) AS unseen, SUM(ABS(notifying)) AS notifying" +
|
|
|
|
@Query("SELECT account.id AS account, COUNT(message.id) AS unseen, SUM(ABS(notifying)) AS notifying" +
|
|
|
|
" FROM message" +
|
|
|
|
" FROM message" +
|
|
|
|
" JOIN account ON account.id = message.account" +
|
|
|
|
" JOIN account ON account.id = message.account" +
|
|
|
|
" JOIN folder ON folder.id = message.folder" +
|
|
|
|
" JOIN folder ON folder.id = message.folder" +
|
|
|
|