1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Show identity, folder and account color in widget

This commit is contained in:
M66B 2020-06-17 17:33:30 +02:00
parent e48be2ea7c
commit 499a79cd56

View file

@ -498,7 +498,7 @@ public interface DaoMessage {
LiveData<List<TupleMessageWidgetCount>> liveWidgetUnified();
@Query("SELECT message.*" +
", account.name AS accountName, account.color AS accountColor" +
", account.name AS accountName, COALESCE(identity.color, folder.color, account.color) AS accountColor" +
", SUM(1 - message.ui_seen) AS unseen" +
", COUNT(message.id) - SUM(message.ui_flagged) AS unflagged" +
", MAX(message.received) AS dummy" +