Fix sender color in membership events

This commit is contained in:
Tulir Asokan 2018-05-15 16:05:11 +03:00
parent b6ebd7d8b5
commit 5884ce3233

View File

@ -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: