diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-15 16:05:11 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-15 17:55:08 +0300 |
commit | 5884ce32336b93363bfbcc145e98cc5ac5006a8b (patch) | |
tree | e15d4ab9ae52796510b5a28d81eaafb8825304cf | |
parent | b6ebd7d8b52721be304939f772c5caccb9563487 (diff) |
Fix sender color in membership events
-rw-r--r-- | ui/messages/base.go | 2 |
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: |