aboutsummaryrefslogtreecommitdiff
path: root/xmpp/gateway/gateway.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-08 15:51:19 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-08 15:51:19 +0300
commitb1135b070b751998cb98eded6d29bdd7b800ecb9 (patch)
tree7063960016850ca04587ac5a94e60f59f676de88 /xmpp/gateway/gateway.go
parent4a5b83dff5c568871d5624202e2ee27e5d0de242 (diff)
Cut fallback quotes out
Diffstat (limited to 'xmpp/gateway/gateway.go')
-rw-r--r--xmpp/gateway/gateway.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmpp/gateway/gateway.go b/xmpp/gateway/gateway.go
index d309ade..de8b495 100644
--- a/xmpp/gateway/gateway.go
+++ b/xmpp/gateway/gateway.go
@@ -16,6 +16,8 @@ import (
type Reply struct {
Author string
Id string
+ Start uint64
+ End uint64
}
const NSNick string = "http://jabber.org/protocol/nick"
@@ -89,6 +91,9 @@ func sendMessageWrapper(to string, from string, body string, id string, componen
To: reply.Author,
Id: reply.Id,
})
+ if reply.End > 0 {
+ message.Extensions = append(message.Extensions, extensions.NewReplyFallback(reply.Start, reply.End))
+ }
}
sendMessage(&message, component)