aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-22 20:19:21 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-22 20:19:21 +0300
commit5698ce62c0c78066150e5c52650fe25e7ebcc3c7 (patch)
tree7242eb79443e4565c1240ff505f05454b47ae628 /telegram
parent3f96664ef3bc9faf61f837dddfc379ab2e69b904 (diff)
Affect the delete icon with the asciiarrows option
Diffstat (limited to 'telegram')
-rw-r--r--telegram/handlers.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go
index 9b86ac7..919c173 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -243,7 +243,13 @@ func (c *Client) updateMessageContent(update *client.UpdateMessageContent) {
// message(s) deleted
func (c *Client) updateDeleteMessages(update *client.UpdateDeleteMessages) {
if update.IsPermanent {
- text := "✗ " + strings.Join(int64SliceToStringSlice(update.MessageIds), ",")
+ var deleteChar string
+ if c.Session.AsciiArrows {
+ deleteChar = "X "
+ } else {
+ deleteChar = "✗ "
+ }
+ text := deleteChar + strings.Join(int64SliceToStringSlice(update.MessageIds), ",")
gateway.SendMessage(c.jid, strconv.FormatInt(update.ChatId, 10), text, c.xmpp)
}
}