mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Fixed race condition while handling sent messages
This commit is contained in:
@@ -249,11 +249,12 @@ public interface DaoMessage {
|
||||
" AND NOT ui_browsed")
|
||||
List<Long> getUids(long folder, Long received);
|
||||
|
||||
@Query("SELECT * FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND uid IS NULL" +
|
||||
" AND ui_browsed")
|
||||
List<EntityMessage> getSentOrphans(long folder);
|
||||
@Query("SELECT message.* FROM message" +
|
||||
" JOIN folder on folder.id = message.folder" +
|
||||
" WHERE message.account = :account" +
|
||||
" AND folder.type = '" + EntityFolder.OUTBOX + "'" +
|
||||
" AND sent IS NOT NULL")
|
||||
List<EntityMessage> getSentOrphans(long account);
|
||||
|
||||
@Query("SELECT * FROM message WHERE NOT ui_snoozed IS NULL")
|
||||
List<EntityMessage> getSnoozed();
|
||||
|
||||
Reference in New Issue
Block a user