From a0180eff7551ec89f2a925dba69ba547ad0e5d60 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sat, 3 Feb 2024 10:38:00 -0500 Subject: [PATCH] Handle command cancelling --- xmpp/handlers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmpp/handlers.go b/xmpp/handlers.go index c6406e9..6fb1af2 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -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, + } } } }