mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Fixed cancelling folder notifications
This commit is contained in:
parent
9aa2942f8a
commit
1d1765c5ce
2 changed files with 5 additions and 1 deletions
|
@ -784,7 +784,7 @@ public interface DaoMessage {
|
|||
" OR (:account IS NULL AND NOT account.notify))" +
|
||||
" AND folder IN (" +
|
||||
" SELECT id FROM folder" +
|
||||
" WHERE :folder IS NULL OR id = :folder)")
|
||||
" WHERE (:folder IS NULL AND folder.unified) OR id = :folder)")
|
||||
int ignoreAll(Long account, Long folder);
|
||||
|
||||
@Query("UPDATE message SET ui_found = 1 WHERE id = :id AND NOT (ui_found IS 1)")
|
||||
|
|
|
@ -180,6 +180,10 @@ public class ServiceUI extends IntentService {
|
|||
}
|
||||
|
||||
private void onClear(long group) {
|
||||
// Group
|
||||
// < 0: folder
|
||||
// = 0: unified
|
||||
// > 0: account
|
||||
DB db = DB.getInstance(this);
|
||||
int cleared;
|
||||
if (group < 0)
|
||||
|
|
Loading…
Reference in a new issue