aboutsummaryrefslogtreecommitdiff
path: root/interface/ui.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-10 16:07:16 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-10 16:07:16 +0300
commitee67c1446cbb3c446d59d4ebd9657a25bf0b702d (patch)
tree8179d7073d3a5fd522937104e1e912131b426919 /interface/ui.go
parentb6e58e83a8ed74f3e0a5f7f0955d264febd542ce (diff)
Convert message buffer to use custom colorable strings
Diffstat (limited to 'interface/ui.go')
-rw-r--r--interface/ui.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/interface/ui.go b/interface/ui.go
index 0ddbde7..2d27ea8 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -87,8 +87,9 @@ type MessageMeta interface {
SenderColor() tcell.Color
TextColor() tcell.Color
TimestampColor() tcell.Color
- Timestamp() string
- Date() string
+ Timestamp() time.Time
+ FormatTime() string
+ FormatDate() string
CopyFrom(from MessageMeta)
}