fix synapse
This commit is contained in:
parent
f1ef46d37c
commit
31b7c0dba8
1 changed files with 4 additions and 2 deletions
|
@ -175,7 +175,7 @@ class MatrixClient(AppService):
|
||||||
content = {
|
content = {
|
||||||
"room_alias_name": f"{self.format}{channel.id}",
|
"room_alias_name": f"{self.format}{channel.id}",
|
||||||
"name": channel.name,
|
"name": channel.name,
|
||||||
"topic": channel.topic,
|
"topic": channel.topic if channel.topic else channel.name,
|
||||||
"visibility": "private",
|
"visibility": "private",
|
||||||
"invite": [sender],
|
"invite": [sender],
|
||||||
"creation_content": {"m.federate": True},
|
"creation_content": {"m.federate": True},
|
||||||
|
@ -189,7 +189,9 @@ class MatrixClient(AppService):
|
||||||
"content": {"history_visibility": "shared"},
|
"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)
|
resp = self.send("POST", "/createRoom", content)
|
||||||
|
|
Loading…
Reference in a new issue