diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-04-09 18:45:41 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-04-09 18:45:41 +0300 |
commit | dbee49476d47bb391dc6af0b774f9fd101b0c917 (patch) | |
tree | b694605cc84a2e7d430e1b809cec51dfc3141bea /ui/messages/message.go | |
parent | 2b6c435e5020535a916e23b09d47608d788eaf05 (diff) |
Start refactoring various things in message rendering and sending
Diffstat (limited to 'ui/messages/message.go')
-rw-r--r-- | ui/messages/message.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/messages/message.go b/ui/messages/message.go index db93879..634bd11 100644 --- a/ui/messages/message.go +++ b/ui/messages/message.go @@ -20,12 +20,20 @@ import ( "maunium.net/go/gomuks/config" "maunium.net/go/gomuks/interface" "maunium.net/go/mauview" + "maunium.net/go/tcell" ) // UIMessage is a wrapper for the content and metadata of a Matrix message intended to be displayed. type UIMessage interface { ifc.Message + Sender() string + SenderColor() tcell.Color + TextColor() tcell.Color + TimestampColor() tcell.Color + FormatTime() string + FormatDate() string + CalculateBuffer(preferences config.UserPreferences, width int) Draw(screen mauview.Screen) Height() int |