Channel loading clears the previous messages again
MODIFY
internal/ui/window.go
internal/ui/window.go
@@ -604,7 +604,9 @@ func (window *Window) LoadChannel(channel *discordgo.Channel) error {
messages[i], messages[j] = messages[j], messages[i]
}
- window.AddMessages(messages)
+ window.SetMessages(messages)
+ } else {
+ window.SetMessages(make([]*discordgo.Message, 0))
}
if channel.Topic != "" {

Channel loading clears the previous messages again