allow to enable/disable notifications per-account

This commit is contained in:
adbenitez
2024-07-03 18:52:15 +02:00
parent 7e7257bf41
commit 2f590871fe
10 changed files with 37 additions and 36 deletions
@@ -236,6 +236,14 @@ public class DcContext {
return getConfigInt("is_chatmail") == 1;
}
public boolean isMuted() {
return getConfigInt("ui.muted") == 1;
}
public void setMuted(boolean muted) {
setConfigInt("ui.muted", muted? 1 : 0);
}
/**
* @return true if at least one chat has location streaming enabled
*/