diff --git a/gui/main.qml b/gui/main.qml index 2f80afb..8a29a81 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -307,16 +307,14 @@ ApplicationWindow { boundsBehavior: Flickable.StopAtBounds onCountChanged: { - if (count > 0) { - positionViewAtEnd() - } + Qt.callLater(function() { positionViewAtEnd() }) } Connections { target: chatModel function onDataChanged() { if (chatView.atYEnd) - chatView.positionViewAtEnd() + Qt.callLater(function() { chatView.positionViewAtEnd() }) } }