Handle command cancelling
This commit is contained in:
parent
e7d5a2a266
commit
a0180eff75
|
@ -760,6 +760,12 @@ func handleSetQueryCommand(s xmpp.Sender, iq *stanza.IQ, command *stanza.Command
|
||||||
} else {
|
} else {
|
||||||
cmdString = "/" + command.Node
|
cmdString = "/" + command.Node
|
||||||
}
|
}
|
||||||
|
} else if command.Action == stanza.CommandActionCancel {
|
||||||
|
answer.Payload = &stanza.Command{
|
||||||
|
SessionId: command.Node,
|
||||||
|
Node: command.Node,
|
||||||
|
Status: stanza.CommandStatusCancelled,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue