client: scroll to bottom when new events are loaded

This commit is contained in:
Kegan Dougal 2021-10-26 18:12:21 +01:00
parent 2285a7bef9
commit e8841183de

View File

@ -202,6 +202,7 @@ const renderRoomContent = (roomId, refresh) => {
(room.timeline || []).forEach((ev) => {
renderMessage(container, ev);
});
container.lastChild.scrollIntoView();
}
const render = (container) => {