mirror of
https://github.com/diamondburned/cchat-discord.git
synced 2025-03-23 02:19:40 +00:00
Fixed messages being reversed
This commit is contained in:
parent
d1f5376e30
commit
e50f72a01d
|
@ -248,8 +248,8 @@ func (ch *Channel) JoinServer(ctx context.Context, ct cchat.MessagesContainer) (
|
|||
})
|
||||
|
||||
// Iterate from the earliest messages to the latest messages.
|
||||
for i := len(m) - 1; i >= 0; i-- {
|
||||
ct.CreateMessage(constructor(m[i]))
|
||||
for _, m := range m {
|
||||
ct.CreateMessage(constructor(m))
|
||||
}
|
||||
|
||||
// Bind the handler.
|
||||
|
|
Loading…
Reference in a new issue