diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-02-20 22:42:53 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-02-20 22:42:53 +0200 |
commit | 852023c61106dfc1310ffbe224a469aaa01a8fda (patch) | |
tree | ac10cd30c47722af5ca81280346f950dbeb8de07 | |
parent | fa8147f07aed32614d97cf062ae1d6773cb7d1f9 (diff) |
Fix compilation error
-rw-r--r-- | ui/messages/base.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/messages/base.go b/ui/messages/base.go index d8ebc9a..0c9025e 100644 --- a/ui/messages/base.go +++ b/ui/messages/base.go @@ -19,7 +19,6 @@ package messages import ( "fmt" "sort" - "strings" "time" "maunium.net/go/gomuks/config" @@ -138,7 +137,6 @@ func (msg *UIMessage) AddReaction(key string) { }) } sort.Sort(msg.Reactions) - msg.CalculateReactionBuffer() } func unixToTime(unix int64) time.Time { @@ -306,7 +304,7 @@ func (msg *UIMessage) DrawReactions(screen mauview.Screen) { x := 0 for _, reaction := range msg.Reactions { - _, drawn := mauview.PrintWithStyle(screen, reaction.String(), x, 0, width - x, mauview.AlignLeft, tcell.StyleDefault.Foreground(mauview.Styles.PrimaryTextColor).Background(tcell.ColorDarkGreen)) + _, drawn := mauview.PrintWithStyle(screen, reaction.String(), x, 0, width-x, mauview.AlignLeft, tcell.StyleDefault.Foreground(mauview.Styles.PrimaryTextColor).Background(tcell.ColorDarkGreen)) x += drawn + 1 if x >= width { break |