Fixed messages being reversed

This commit is contained in:
diamondburned 2020-07-11 15:13:58 -07:00
parent d1f5376e30
commit e50f72a01d
1 changed files with 2 additions and 2 deletions

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.
for i := len(m) - 1; i >= 0; i-- {
ct.CreateMessage(constructor(m[i]))
for _, m := range m {
ct.CreateMessage(constructor(m))
}
// Bind the handler.