diff --git a/ui/app/AppLayouts/Chat/ChatColumn.qml b/ui/app/AppLayouts/Chat/ChatColumn.qml index 6109039a81..651cf48fc8 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn.qml @@ -12,6 +12,8 @@ import "../Wallet" StackLayout { id: chatColumnLayout + property alias chatMessages: chatMessages + property int chatGroupsListViewCount: 0 property bool isReply: false diff --git a/ui/app/AppLayouts/Chat/ChatColumn/ChatMessages.qml b/ui/app/AppLayouts/Chat/ChatColumn/ChatMessages.qml index 282411a9b6..5070db9385 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/ChatMessages.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/ChatMessages.qml @@ -11,6 +11,8 @@ import "./MessageComponents" ScrollView { id: root + + property alias chatLogView: chatLogView property var messageList: MessagesData {} property bool loadingMessages: false diff --git a/ui/app/AppLayouts/Chat/ChatLayout.qml b/ui/app/AppLayouts/Chat/ChatLayout.qml index 4bcc871a7b..a84e07dfcc 100644 --- a/ui/app/AppLayouts/Chat/ChatLayout.qml +++ b/ui/app/AppLayouts/Chat/ChatLayout.qml @@ -10,6 +10,8 @@ SplitView { id: chatView handle: SplitViewHandle {} + property alias chatColumn: chatColumn + property var onActivated: function () { chatColumn.onActivated() } diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index ff537dc8a0..2f0a85caf0 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -185,6 +185,10 @@ RowLayout { if(this.children[currentIndex] === browserLayoutContainer && browserLayoutContainer.active == false){ browserLayoutContainer.active = true; } + + if(this.children[currentIndex] === chatLayoutContainer){ + chatLayoutContainer.chatColumn.chatMessages.chatLogView.scrollToBottom(true); + } } ChatLayout {