diff --git a/imports/Spectral/Panel/RoomPanel.qml b/imports/Spectral/Panel/RoomPanel.qml index 53806ee..f47e9d4 100644 --- a/imports/Spectral/Panel/RoomPanel.qml +++ b/imports/Spectral/Panel/RoomPanel.qml @@ -9,13 +9,8 @@ RoomPanelForm { if (currentRoom) { var lastScrollPosition = sortedMessageEventModel.mapFromSource(currentRoom.savedTopVisibleIndex()) - if (lastScrollPosition === 0) - messageListView.positionViewAtEnd() - else - { - console.log("Scrolling to position", lastScrollPosition) - messageListView.currentIndex = lastScrollPosition - } + console.log("Scrolling to position", lastScrollPosition) + messageListView.currentIndex = lastScrollPosition if (messageListView.contentY < messageListView.originY + 10 || currentRoom.timelineSize === 0) currentRoom.getPreviousContent(100) }