Add option to not bridge chats with too many members

This commit is contained in:
Tulir Asokan
2022-06-22 12:05:48 +03:00
parent bac3abcb4c
commit e8eef1c31e
6 changed files with 29 additions and 2 deletions
+4 -1
View File
@@ -233,7 +233,10 @@ async def join(evt: CommandEvent) -> EventID | None:
updates.stringify(),
)
raise e
return await evt.reply(f"Created room for {portal.title}")
if portal.mxid:
return await evt.reply(f"Created room for {portal.title}")
else:
return await evt.reply(f"Couldn't create room for {portal.title}")
return None