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 {
|
switch {
|
||||||
case stateColor != tcell.ColorDefault:
|
case stateColor != tcell.ColorDefault:
|
||||||
return stateColor
|
return stateColor
|
||||||
|
case msg.MsgType == "m.room.member":
|
||||||
|
return widget.GetHashColor(msg.MsgSender)
|
||||||
case msg.MsgIsService:
|
case msg.MsgIsService:
|
||||||
return tcell.ColorGray
|
return tcell.ColorGray
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user