Affect the edit icon with the asciiarrows option

This commit is contained in:
Bohdan Horbeshko 2022-03-10 07:30:02 -05:00
parent 1b291e55e5
commit 404e4f8d3e

View file

@ -249,7 +249,13 @@ func (c *Client) updateMessageContent(update *client.UpdateMessageContent) {
markupFunction := formatter.EntityToXEP0393 markupFunction := formatter.EntityToXEP0393
if update.NewContent.MessageContentType() == client.TypeMessageText { if update.NewContent.MessageContentType() == client.TypeMessageText {
textContent := update.NewContent.(*client.MessageText) 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, textContent.Text.Text,
formatter.SortEntities(textContent.Text.Entities), formatter.SortEntities(textContent.Text.Entities),
markupFunction, markupFunction,