bridgev2/commands: fix pm command not starting chat
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

This commit is contained in:
Tulir Asokan 2024-12-05 14:24:54 +02:00
commit 933daead3b

View file

@ -85,7 +85,7 @@ func fnResolveIdentifier(ce *Event) {
if api == nil {
return
}
createChat := ce.Command == "start-chat"
createChat := ce.Command == "start-chat" || ce.Command == "pm"
identifier := strings.Join(identifierParts, " ")
resp, err := api.ResolveIdentifier(ce.Ctx, identifier, createChat)
if err != nil {