aboutsummaryrefslogtreecommitdiff
path: root/xmpp/gateway/gateway.go
diff options
context:
space:
mode:
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)