mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Persist account capabilities
This commit is contained in:
@@ -184,6 +184,12 @@ public interface DaoAccount {
|
||||
@Query("UPDATE account SET max_size = :max_size WHERE id = :id AND NOT (max_size IS :max_size)")
|
||||
int setAccountMaxSize(long id, Long max_size);
|
||||
|
||||
@Query("UPDATE account" +
|
||||
" SET capability_idle = :idle, capability_utf8 = :utf8" +
|
||||
" WHERE id = :id" +
|
||||
" AND NOT (capability_idle IS :idle AND capability_utf8 IS :utf8)")
|
||||
int setAccountCapabilities(long id, Boolean idle, Boolean utf8);
|
||||
|
||||
@Query("UPDATE account SET warning = :warning WHERE id = :id AND NOT (warning IS :warning)")
|
||||
int setAccountWarning(long id, String warning);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user