aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/base.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-04-10 17:08:39 +0300
committerTulir Asokan <tulir@maunium.net>2019-04-10 17:08:39 +0300
commit7e0278c571954564efca64a6ea114c0e80f11532 (patch)
tree7441b02cb074ba6d4e421fa0b36112905e48ebaa /ui/messages/base.go
parent45a68c7fb5d811036075c550fb6fa40069486bf1 (diff)
Fix m.emote rendering
Diffstat (limited to 'ui/messages/base.go')
-rw-r--r--ui/messages/base.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/messages/base.go b/ui/messages/base.go
index 32e1865..c377ccb 100644
--- a/ui/messages/base.go
+++ b/ui/messages/base.go
@@ -170,6 +170,9 @@ func (msg *BaseMessage) TextColor() tcell.Color {
//
// However, other messages are the default color instead of a color stored in the struct.
func (msg *BaseMessage) TimestampColor() tcell.Color {
+ if msg.MsgIsService {
+ return tcell.ColorGray
+ }
return msg.getStateSpecificColor()
}