From 5884ce32336b93363bfbcc145e98cc5ac5006a8b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 15 May 2018 16:05:11 +0300 Subject: Fix sender color in membership events --- ui/messages/base.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/messages/base.go') 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: -- cgit v1.2.3