Fix sender color in membership events
This commit is contained in:
parent
b6ebd7d8b5
commit
5884ce3233
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user