|
@ -166,7 +166,7 @@ public interface DaoMessage { |
|
|
", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" + |
|
|
", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" + |
|
|
", (SELECT COUNT(a.id) FROM attachment a WHERE a.message = message.id) AS attachments" + |
|
|
", (SELECT COUNT(a.id) FROM attachment a WHERE a.message = message.id) AS attachments" + |
|
|
" FROM message" + |
|
|
" FROM message" + |
|
|
" LEFT 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" + |
|
|
" WHERE message.id = :id") |
|
|
" WHERE message.id = :id") |
|
|
LiveData<TupleMessageEx> liveMessage(long id); |
|
|
LiveData<TupleMessageEx> liveMessage(long id); |
|
|