From 4a5b83dff5c568871d5624202e2ee27e5d0de242 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sun, 5 Mar 2023 03:00:53 -0500 Subject: Show XEP-0461 replies from Telegram --- telegram/commands.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'telegram/commands.go') diff --git a/telegram/commands.go b/telegram/commands.go index 957c335..943d071 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -184,6 +184,7 @@ func (c *Client) unsubscribe(chatID int64) error { func (c *Client) sendMessagesReverse(chatID int64, messages []*client.Message) { for i := len(messages) - 1; i >= 0; i-- { message := messages[i] + reply, _ := c.getMessageReply(message) gateway.SendMessage( c.jid, @@ -191,6 +192,7 @@ func (c *Client) sendMessagesReverse(chatID int64, messages []*client.Message) { c.formatMessage(0, 0, false, message), strconv.FormatInt(message.Id, 10), c.xmpp, + reply, ) } } -- cgit v1.2.3