|
|
|
@ -149,7 +149,12 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
|
|
|
|
|
"end": body.End,
|
|
|
|
|
}).Warn(errors.Wrap(err, "Failed to parse fallback end!"))
|
|
|
|
|
}
|
|
|
|
|
text = text[:start] + text[end:]
|
|
|
|
|
|
|
|
|
|
fullRunes := []rune(text)
|
|
|
|
|
cutRunes := make([]rune, 0, len(text)-int(end-start))
|
|
|
|
|
cutRunes = append(cutRunes, fullRunes[:start]...)
|
|
|
|
|
cutRunes = append(cutRunes, fullRunes[end:]...)
|
|
|
|
|
text = string(cutRunes)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var replaceId int64
|
|
|
|
|