Add missing awaits and use lock for create_matrix_room. Fixes #49

This commit is contained in:
Tulir Asokan
2018-02-10 21:33:57 +02:00
parent 772e80f74c
commit 8a5c067259
2 changed files with 21 additions and 10 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ class CommandHandler:
if not portal:
return await evt.reply("This is not a portal room.")
for user in portal.main_intent.get_room_members(portal.mxid):
for user in await portal.main_intent.get_room_members(portal.mxid):
if user != portal.main_intent.mxid:
try:
await portal.main_intent.kick(portal.mxid, user, "Portal deleted.")