use reverse()

This commit is contained in:
Felicio Mununga 2022-06-08 16:18:01 +02:00
parent b9062d556b
commit 4c1413cadf
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export async function fetchMessages(
})
if (remainingFetchedMessages.length) {
const _chunk = remainingFetchedMessages.splice(0)
const _chunk = remainingFetchedMessages.splice(0).reverse()
const _messages = [..._chunk, ...fetchedMessages, ...storedMessages]
callback(_messages)