mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-23 05:30:38 -04:00
Add push.enabled
option to disable push notification calculation (#14551)
* Add initial option * changelog * Some more linting
This commit is contained in:
parent
781b14ec69
commit
71f3e53ad0
5 changed files with 53 additions and 2 deletions
|
@ -26,6 +26,7 @@ class PushConfig(Config):
|
|||
def read_config(self, config: JsonDict, **kwargs: Any) -> None:
|
||||
push_config = config.get("push") or {}
|
||||
self.push_include_content = push_config.get("include_content", True)
|
||||
self.enable_push = push_config.get("enabled", True)
|
||||
self.push_group_unread_count_by_room = push_config.get(
|
||||
"group_unread_count_by_room", True
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue