Handle command cancelling

This commit is contained in:
Bohdan Horbeshko 2024-02-03 10:38:00 -05:00
parent e7d5a2a266
commit a0180eff75

View file

@ -760,6 +760,12 @@ func handleSetQueryCommand(s xmpp.Sender, iq *stanza.IQ, command *stanza.Command
} else {
cmdString = "/" + command.Node
}
} else if command.Action == stanza.CommandActionCancel {
answer.Payload = &stanza.Command{
SessionId: command.Node,
Node: command.Node,
Status: stanza.CommandStatusCancelled,
}
}
}
}