aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-04 05:41:45 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-04 05:41:45 +0300
commit6e32c62f8dac5ccc97dd0a6067965ba2689f3c86 (patch)
tree8991478d056f538ed1782bfb66e6071486b8c9bf /xmpp/handlers.go
parentb3d66993e5962d2b961631e3afa578967a7b3d8a (diff)
Assign IDs from Telegram to XMPP messages
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r--xmpp/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index d5653ce..d83fef4 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -106,7 +106,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
if err == nil && toJid.Bare() == gatewayJid && (strings.HasPrefix(msg.Body, "/") || strings.HasPrefix(msg.Body, "!")) {
response := session.ProcessTransportCommand(msg.Body, resource)
if response != "" {
- gateway.SendMessage(msg.From, "", response, component)
+ gateway.SendMessage(msg.From, "", response, "", component)
}
return
}