aboutsummaryrefslogtreecommitdiff
path: root/telegram/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-03-10 15:30:02 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-03-10 15:30:02 +0300
commit404e4f8d3ebfc43407aa40c827be4f78b06ab568 (patch)
treef8c9ed78bb602c1ffd0dcf781391265f8905ccbb /telegram/handlers.go
parent1b291e55e55ded88159ba9b5117ac25b5929317e (diff)
Affect the edit icon with the asciiarrows option
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r--telegram/handlers.go8
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,