1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-discord.git synced 2025-11-22 12:43:44 +00:00

Fixed messages being reversed

This commit is contained in:
diamondburned 2020-07-11 15:13:58 -07:00
parent d1f5376e30
commit e50f72a01d

View file

@ -248,8 +248,8 @@ func (ch *Channel) JoinServer(ctx context.Context, ct cchat.MessagesContainer) (
}) })
// Iterate from the earliest messages to the latest messages. // Iterate from the earliest messages to the latest messages.
for i := len(m) - 1; i >= 0; i-- { for _, m := range m {
ct.CreateMessage(constructor(m[i])) ct.CreateMessage(constructor(m))
} }
// Bind the handler. // Bind the handler.