diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-03-11 19:12:36 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-03-11 19:12:36 +0300 |
commit | f6e62fe1fd208cba8214db70fe1ebbdc9bb41115 (patch) | |
tree | dff45ff812970bf738e40f1f3274bd49b9f61eec /telegram/handlers.go | |
parent | 7ddc3c448278191f19d616cf3b730bdbe8dc63cd (diff) |
Merge adjacent formatting entities of same kind
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r-- | telegram/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go index a8cb814..a4fa39f 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -257,7 +257,7 @@ func (c *Client) updateMessageContent(update *client.UpdateMessageContent) { } text := editChar + fmt.Sprintf("%v | %s", update.MessageId, formatter.Format( textContent.Text.Text, - formatter.SortEntities(textContent.Text.Entities), + textContent.Text.Entities, markupFunction, )) gateway.SendMessage(c.jid, strconv.FormatInt(update.ChatId, 10), text, c.xmpp) |