From dbee49476d47bb391dc6af0b774f9fd101b0c917 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 9 Apr 2019 18:45:41 +0300 Subject: Start refactoring various things in message rendering and sending --- ui/messages/message.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui/messages/message.go') 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 -- cgit v1.2.3