aboutsummaryrefslogtreecommitdiff
path: root/telegram/handlers.go
diff options
context:
space:
mode:
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,