Affect the edit icon with the asciiarrows option
This commit is contained in:
parent
1b291e55e5
commit
404e4f8d3e
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue