From e50f72a01d0a6a90f314923465324e31255d0bea Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 11 Jul 2020 15:13:58 -0700 Subject: [PATCH] Fixed messages being reversed --- channel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channel.go b/channel.go index 6f4b220..7bb0cb4 100644 --- a/channel.go +++ b/channel.go @@ -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.