Scroll infinite.
This commit is contained in:
		
							parent
							
								
									9e3b9ae326
								
							
						
					
					
						commit
						33bc695cda
					
				| @ -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); | ||||||
|             }) |             }) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user