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.
|
// 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.
|
||||||
|
|
Loading…
Reference in New Issue