aboutsummaryrefslogtreecommitdiff
path: root/ui/messages
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-15 16:05:11 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-15 17:55:08 +0300
commit5884ce32336b93363bfbcc145e98cc5ac5006a8b (patch)
treee15d4ab9ae52796510b5a28d81eaafb8825304cf /ui/messages
parentb6ebd7d8b52721be304939f772c5caccb9563487 (diff)
Fix sender color in membership events
Diffstat (limited to 'ui/messages')
-rw-r--r--ui/messages/base.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/messages/base.go b/ui/messages/base.go
index cf698db..d6ff4f6 100644
--- a/ui/messages/base.go
+++ b/ui/messages/base.go
@@ -116,6 +116,8 @@ func (msg *BaseMessage) SenderColor() tcell.Color {
switch {
case stateColor != tcell.ColorDefault:
return stateColor
+ case msg.MsgType == "m.room.member":
+ return widget.GetHashColor(msg.MsgSender)
case msg.MsgIsService:
return tcell.ColorGray
default: