Don't colorize new name in name change message

This commit is contained in:
Tulir Asokan 2018-05-15 15:55:23 +03:00
parent 2d64209572
commit b6ebd7d8b5

View File

@ -125,7 +125,6 @@ func getMembershipEventContent(room *rooms.Room, evt *gomatrix.Event) (sender st
sender = "---" sender = "---"
text = tstring.NewColorTString(fmt.Sprintf("%s changed their display name to %s.", prevDisplayname, displayname), tcell.ColorGreen) text = tstring.NewColorTString(fmt.Sprintf("%s changed their display name to %s.", prevDisplayname, displayname), tcell.ColorGreen)
text.Colorize(0, len(prevDisplayname), widget.GetHashColor(*evt.StateKey)) text.Colorize(0, len(prevDisplayname), widget.GetHashColor(*evt.StateKey))
text.Colorize(len(prevDisplayname)+len(" changed their display name to "), len(displayname), widget.GetHashColor(*evt.StateKey))
} }
return return
} }