portal.py refactoring

This commit is contained in:
Tulir Asokan
2018-02-19 22:30:34 +02:00
parent 799dfdb2ac
commit c21a55ebc7
2 changed files with 27 additions and 19 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ async def join(evt):
for chat in updates.chats:
portal = po.Portal.get_by_entity(chat)
if portal.mxid:
await portal.invite_matrix([evt.sender.mxid])
await portal.invite_to_matrix([evt.sender.mxid])
return await evt.reply(f"Invited you to portal of {portal.title}")
else:
await evt.reply(f"Creating room for {chat.title}... This might take a while.")