Fix compilation error
This commit is contained in:
parent
fa8147f07a
commit
852023c611
@ -19,7 +19,6 @@ package messages
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"maunium.net/go/gomuks/config"
|
"maunium.net/go/gomuks/config"
|
||||||
@ -138,7 +137,6 @@ func (msg *UIMessage) AddReaction(key string) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
sort.Sort(msg.Reactions)
|
sort.Sort(msg.Reactions)
|
||||||
msg.CalculateReactionBuffer()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func unixToTime(unix int64) time.Time {
|
func unixToTime(unix int64) time.Time {
|
||||||
@ -306,7 +304,7 @@ func (msg *UIMessage) DrawReactions(screen mauview.Screen) {
|
|||||||
|
|
||||||
x := 0
|
x := 0
|
||||||
for _, reaction := range msg.Reactions {
|
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
|
x += drawn + 1
|
||||||
if x >= width {
|
if x >= width {
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user