diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index 987349c..19fadce 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -592,7 +592,7 @@ Page { chatViewStartupReadTimer.restart(); } onNewMessageReceived: { - if (chatView.manuallyScrolledToBottom || message.sender.user_id === chatPage.myUserId) { + if (( chatView.manuallyScrolledToBottom && Qt.application.state === Qt.ApplicationActive ) || message.sender.user_id === chatPage.myUserId) { Debug.log("[ChatPage] Own message received or was scrolled to bottom, scrolling down to see it..."); chatView.scrollToIndex(chatView.count - 1); viewMessageTimer.queueViewMessage(chatView.count - 1);