diff --git a/xmpp/gateway/gateway.go b/xmpp/gateway/gateway.go index 4b2a07f..5ba201a 100644 --- a/xmpp/gateway/gateway.go +++ b/xmpp/gateway/gateway.go @@ -144,6 +144,7 @@ func sendMessageWrapper(to string, from string, body string, id string, componen message.Extensions = append(message.Extensions, stanza.MarkReceived{ID: marker.Id}) } else if marker.Type == MarkerTypeDisplayed { message.Extensions = append(message.Extensions, stanza.MarkDisplayed{ID: marker.Id}) + message.Extensions = append(message.Extensions, stanza.ReceiptReceived{ID: marker.Id}) } } if !isCarbon && toJid.Resource != "" { diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 088cb21..541eb63 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -461,6 +461,7 @@ func handleGetDiscoInfo(s xmpp.Sender, iq *stanza.IQ) { if ok { disco.AddIdentity("", "account", "registered") disco.AddFeatures(stanza.NSMsgChatMarkers) + disco.AddFeatures(stanza.NSMsgReceipts) } else { disco.AddIdentity("Telegram Gateway", "gateway", "telegram") disco.AddFeatures("jabber:iq:register")