|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|