Skip to content

Commit

Permalink
chat/message: Handle nil theme (mono)
Browse files Browse the repository at this point in the history
Fixes #310
  • Loading branch information
shazow committed Mar 24, 2019
1 parent 338ded7 commit 5057b89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chat/message/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5057b89

Please sign in to comment.