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
@@ -84,7 +84,7 @@ class MatrixHandler(BaseMatrixHandler):
portal = po.Portal.get_by_tgid(puppet.tgid, inviter.tgid, "user")
if portal.mxid:
try:
await intent.invite_user(portal.mxid, inviter.mxid)
await portal.invite_to_matrix(inviter.mxid)
await intent.send_notice(
room_id, text=f"You already have a private chat with me: {portal.mxid}",
html=("You already have a private chat with me: "