Add flag to invite events that will be auto-accepted

This commit is contained in:
Tulir Asokan
2021-08-18 20:48:11 +03:00
parent 5d9cc490d7
commit 52bfbddcca
4 changed files with 25 additions and 14 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ class Bot(AbstractUser):
return await reply("That user seems to be logged in. "
f"Just invite [{displayname}](tg://user?id={user.tgid})")
else:
await portal.main_intent.invite_user(portal.mxid, user.mxid)
await portal.invite_to_matrix(user.mxid)
return await reply(f"Invited `{user.mxid}` to the portal.")
@staticmethod