From db5c1a3f615af21eeacc411cf987c700557ceaa9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 12 May 2020 20:30:38 +0300 Subject: [PATCH] Make sure user gets invited to portal when using open command --- commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.go b/commands.go index 79d6b7b..3894f0f 100644 --- a/commands.go +++ b/commands.go @@ -559,6 +559,7 @@ func (handler *CommandHandler) CommandOpen(ce *CommandEvent) { portal.Sync(user, contact) ce.Reply("Portal room created.") } + _, _ = portal.MainIntent().InviteUser(portal.MXID, &mautrix.ReqInviteUser{UserID: user.MXID}) } const cmdPMHelp = `pm [--force] <_international phone number_> - Open a private chat with the given phone number.`