From 404e4f8d3ebfc43407aa40c827be4f78b06ab568 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Thu, 10 Mar 2022 07:30:02 -0500 Subject: [PATCH] Affect the edit icon with the asciiarrows option --- telegram/handlers.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/telegram/handlers.go b/telegram/handlers.go index 62afd67..a8cb814 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -249,7 +249,13 @@ func (c *Client) updateMessageContent(update *client.UpdateMessageContent) { markupFunction := formatter.EntityToXEP0393 if update.NewContent.MessageContentType() == client.TypeMessageText { textContent := update.NewContent.(*client.MessageText) - text := fmt.Sprintf("✎ %v | %s", update.MessageId, formatter.Format( + var editChar string + if c.Session.AsciiArrows { + editChar = "e " + } else { + editChar = "✎ " + } + text := editChar + fmt.Sprintf("%v | %s", update.MessageId, formatter.Format( textContent.Text.Text, formatter.SortEntities(textContent.Text.Entities), markupFunction,