From 31b7c0dba88bd6dd98bb2ec0650cb9dc60234362 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sat, 5 Jun 2021 18:18:31 +0530 Subject: [PATCH] fix synapse --- appservice/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appservice/main.py b/appservice/main.py index b93974b..9679ecc 100644 --- a/appservice/main.py +++ b/appservice/main.py @@ -175,7 +175,7 @@ class MatrixClient(AppService): content = { "room_alias_name": f"{self.format}{channel.id}", "name": channel.name, - "topic": channel.topic, + "topic": channel.topic if channel.topic else channel.name, "visibility": "private", "invite": [sender], "creation_content": {"m.federate": True}, @@ -189,7 +189,9 @@ class MatrixClient(AppService): "content": {"history_visibility": "shared"}, }, ], - "power_level_content_override": {"users": {sender: 100}}, + "power_level_content_override": { + "users": {sender: 100, self.user_id: 100} + }, } resp = self.send("POST", "/createRoom", content)