diff --git a/chat/message/theme.go b/chat/message/theme.go index 37eb7246..10c3280a 100644 --- a/chat/message/theme.go +++ b/chat/message/theme.go @@ -165,6 +165,9 @@ func (theme Theme) Highlight(s string) string { // Timestamp colorizes the timestamp. func (theme Theme) Timestamp(s string) string { + if theme.sys == nil { + return s + } return theme.sys.Format(s) }