summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorMathieu Velten <matmaul@gmail.com>2023-12-12 16:22:19 +0100
committerGitHub <noreply@github.com>2023-12-12 15:22:19 +0000
commite108c31fc0ba4fa8b8890170ce4433df334ab58b (patch)
treed037f7b83a78bd3a52b3f72dafdca026951718dd /synapse/config
parentAdd config to change the delay before sending a notification email (#16696) (diff)
downloadsynapse-e108c31fc0ba4fa8b8890170ce4433df334ab58b.tar.xz
Add avatar and topic settings for server notice room (#16679)
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/server_notices.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/config/server_notices.py b/synapse/config/server_notices.py
index a8badba0f8..79f365cad5 100644
--- a/synapse/config/server_notices.py
+++ b/synapse/config/server_notices.py
@@ -38,6 +38,14 @@ class ServerNoticesConfig(Config):
         server_notices_room_name (str|None):
             The name to use for the server notices room.
             None if server notices are not enabled.
+
+        server_notices_room_avatar_url (str|None):
+            The avatar URL to use for the server notices room.
+            None if server notices are not enabled.
+
+        server_notices_room_topic (str|None):
+            The topic to use for the server notices room.
+            None if server notices are not enabled.
     """
 
     section = "servernotices"
@@ -48,6 +56,8 @@ class ServerNoticesConfig(Config):
         self.server_notices_mxid_display_name: Optional[str] = None
         self.server_notices_mxid_avatar_url: Optional[str] = None
         self.server_notices_room_name: Optional[str] = None
+        self.server_notices_room_avatar_url: Optional[str] = None
+        self.server_notices_room_topic: Optional[str] = None
         self.server_notices_auto_join: bool = False
 
     def read_config(self, config: JsonDict, **kwargs: Any) -> None:
@@ -63,4 +73,6 @@ class ServerNoticesConfig(Config):
         self.server_notices_mxid_avatar_url = c.get("system_mxid_avatar_url", None)
         # todo: i18n
         self.server_notices_room_name = c.get("room_name", "Server Notices")
+        self.server_notices_room_avatar_url = c.get("room_avatar_url", None)
+        self.server_notices_room_topic = c.get("room_topic", None)
         self.server_notices_auto_join = c.get("auto_join", False)