diff --git a/src/gui/Pages/Chat/Timeline/EventList.qml b/src/gui/Pages/Chat/Timeline/EventList.qml index a31b3706..99743b69 100644 --- a/src/gui/Pages/Chat/Timeline/EventList.qml +++ b/src/gui/Pages/Chat/Timeline/EventList.qml @@ -11,8 +11,6 @@ import "../../../PythonBridge" import "../../../ShortcutBundles" Rectangle { - readonly property var modelSyncId: - [chat.userRoomId[0], chat.userRoomId[1], "events"] readonly property alias eventList: eventList readonly property alias contextMenu: contextMenu @@ -508,6 +506,7 @@ Rectangle { bottomMargin: theme.spacing verticalLayoutDirection: ListView.BottomToTop + model: ModelStore.get(chat.userRoomId[0], chat.userRoomId[1], "events") delegate: EventDelegate {} highlight: Rectangle { @@ -548,25 +547,6 @@ Rectangle { } } - Connections { - target: pageLoader - onRecycled: { - eventList.model = null - eventList.cacheBuffer = 0 - updateModelTimer.restart() - } - } - - Timer { - id: updateModelTimer - interval: pageLoader.appearAnimation.duration / 2 - running: true - onTriggered: { - eventList.model = ModelStore.get(modelSyncId) - increaseBufferTimer.restart() - } - } - Timer { id: increaseBufferTimer interval: 1000