mirror of
https://github.com/status-im/status-web-archive.git
synced 2025-02-10 14:46:40 +00:00
use reverse()
This commit is contained in:
parent
25be8ec391
commit
49690081f9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user