Scroll infinite.

This commit is contained in:
retoor 2025-02-17 18:52:19 +01:00
parent 9e3b9ae326
commit 33bc695cda

View File

@ -70,7 +70,7 @@
if(isElementVisible(offsetMessage)){ if(isElementVisible(offsetMessage)){
offsetMessage.dataset.seen = true offsetMessage.dataset.seen = true
const messages = await app.rpc.get_messages(channelUid, 1, fourthMessage.dataset.created_at); const messages = await app.rpc.get_messages(channelUid, 1, offsetMessage.dataset.created_at);
messages.forEach((message) => { messages.forEach((message) => {
firstMessage.insertAdjacentHTML("beforebegin", message.html); firstMessage.insertAdjacentHTML("beforebegin", message.html);
}) })