|
|
|
@ -115,7 +115,6 @@ public interface DaoFolder {
|
|
|
|
|
", account.`order` AS accountOrder, account.name AS accountName, COALESCE(folder.color, account.color) AS accountColor" +
|
|
|
|
|
", COUNT(message.id) AS messages" +
|
|
|
|
|
", SUM(CASE WHEN NOT message.ui_seen THEN 1 ELSE 0 END) AS unseen" +
|
|
|
|
|
", SUM(CASE WHEN message.ui_snoozed IS NULL THEN 0 ELSE 1 END) AS snoozed" +
|
|
|
|
|
", (SELECT COUNT(operation.id) FROM operation WHERE operation.folder = folder.id) AS operations" +
|
|
|
|
|
", (SELECT COUNT(operation.id) FROM operation WHERE operation.folder = folder.id AND operation.state = 'executing') AS executing" +
|
|
|
|
|
" FROM folder" +
|
|
|
|
|