mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 01:14:29 +01:00
Make sure user gets invited to portal when using open command
This commit is contained in:
parent
168a6ff93f
commit
db5c1a3f61
1 changed files with 1 additions and 0 deletions
|
@ -559,6 +559,7 @@ func (handler *CommandHandler) CommandOpen(ce *CommandEvent) {
|
||||||
portal.Sync(user, contact)
|
portal.Sync(user, contact)
|
||||||
ce.Reply("Portal room created.")
|
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.`
|
const cmdPMHelp = `pm [--force] <_international phone number_> - Open a private chat with the given phone number.`
|
||||||
|
|
Loading…
Reference in a new issue