diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-03-10 15:30:02 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-03-10 15:30:02 +0300 |
commit | 404e4f8d3ebfc43407aa40c827be4f78b06ab568 (patch) | |
tree | f8c9ed78bb602c1ffd0dcf781391265f8905ccbb /telegram | |
parent | 1b291e55e55ded88159ba9b5117ac25b5929317e (diff) |
Affect the edit icon with the asciiarrows option
Diffstat (limited to 'telegram')
-rw-r--r-- | telegram/handlers.go | 8 |
1 files changed, 7 insertions, 1 deletions
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, |