Scroll infinite.
This commit is contained in:
parent
c042af8b80
commit
bb2b4b61b4
@ -89,11 +89,13 @@
|
||||
|
||||
|
||||
const messages = await app.rpc.getMessages(channelUid, 1, firstMessage.dataset.created_at);
|
||||
isLoadingExtra = false;
|
||||
|
||||
messages.forEach((message) => {
|
||||
firstMessage.insertAdjacentHTML("beforebegin", message.html);
|
||||
})
|
||||
updateLayout(false);
|
||||
|
||||
isLoadingExtra = false;
|
||||
}
|
||||
messagesContainer.addEventListener("scroll",()=>{
|
||||
loadExtra()
|
||||
|
Loading…
Reference in New Issue
Block a user