mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Fixed message count
This commit is contained in:
parent
dd2fdc9446
commit
ca8742dca4
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ public interface DaoMessage {
|
||||||
", account.name AS accountName, account.color AS accountColor" +
|
", account.name AS accountName, account.color AS accountColor" +
|
||||||
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
||||||
", 0 AS threaded" +
|
", 0 AS threaded" +
|
||||||
", 1 AS count" +
|
", (SELECT COUNT(m1.id) FROM message m1 WHERE m1.account = message.account AND m1.thread = message.thread AND NOT m1.ui_hide) AS count" +
|
||||||
", CASE WHEN message.ui_seen THEN 0 ELSE 1 END AS unseen" +
|
", CASE WHEN message.ui_seen THEN 0 ELSE 1 END AS unseen" +
|
||||||
", 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" +
|
||||||
|
|
Loading…
Reference in a new issue