aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-15 15:55:23 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-15 17:55:08 +0300
commitb6ebd7d8b52721be304939f772c5caccb9563487 (patch)
treeb336378d7d34e12438543edfe8d18953ab914c44 /ui
parent2d642095723416be7dd552ff79ef31ef06ec6e34 (diff)
Don't colorize new name in name change message
Diffstat (limited to 'ui')
-rw-r--r--ui/messages/parser/parser.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/messages/parser/parser.go b/ui/messages/parser/parser.go
index 090732d..158e27b 100644
--- a/ui/messages/parser/parser.go
+++ b/ui/messages/parser/parser.go
@@ -125,7 +125,6 @@ func getMembershipEventContent(room *rooms.Room, evt *gomatrix.Event) (sender st
sender = "---"
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(len(prevDisplayname)+len(" changed their display name to "), len(displayname), widget.GetHashColor(*evt.StateKey))
}
return
}