aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/message.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-06-02 00:43:56 +0300
committerTulir Asokan <tulir@maunium.net>2018-06-02 00:43:56 +0300
commit134604edce935a0017b50c16687429e0b25248e6 (patch)
treeee0288388c84c54e060b2e29fe390ae163c1c962 /ui/messages/message.go
parent7868bd90fab77faa1e37674d543eefc1ff315fff (diff)
Add ui toggle for image rendering
Diffstat (limited to 'ui/messages/message.go')
-rw-r--r--ui/messages/message.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/messages/message.go b/ui/messages/message.go
index 0de2835..3f1e694 100644
--- a/ui/messages/message.go
+++ b/ui/messages/message.go
@@ -19,13 +19,14 @@ package messages
import (
"maunium.net/go/gomuks/interface"
"maunium.net/go/gomuks/ui/messages/tstring"
+ "maunium.net/go/gomuks/config"
)
// UIMessage is a wrapper for the content and metadata of a Matrix message intended to be displayed.
type UIMessage interface {
ifc.Message
- CalculateBuffer(bare bool, width int)
+ CalculateBuffer(preferences config.UserPreferences, width int)
RecalculateBuffer()
Buffer() []tstring.TString
Height() int