chat/message: Handle nil theme (mono)

Fixes #310
This commit is contained in:
Andrey Petrov committed 2019-03-24 18:59:33 -04:00
1 parent 338ded7a4e
commit 5057b891c0
1 file changed
+3
+3
View File
@@ -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)
}