Scroll infinite.

This commit is contained in:
retoor 2025-02-17 20:17:17 +01:00
parent c042af8b80
commit bb2b4b61b4

View File

@ -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()