From 065c701af5e35308953efb43655d0da41b82adc7 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 10 Jan 2017 12:02:50 +0100 Subject: [PATCH] fix(ui/modules/Linphone/Chat/Chat): scroll to end when a message is sent --- tests/ui/modules/Linphone/Chat/Chat.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ui/modules/Linphone/Chat/Chat.qml b/tests/ui/modules/Linphone/Chat/Chat.qml index db70875cd..5cd6a530b 100644 --- a/tests/ui/modules/Linphone/Chat/Chat.qml +++ b/tests/ui/modules/Linphone/Chat/Chat.qml @@ -12,6 +12,7 @@ import Utils 1.0 ColumnLayout { property alias proxyModel: chat.model + property bool _bindToEnd: false property var _contactObserver: SipAddressesModel.getContactObserver(proxyModel.sipAddress) // --------------------------------------------------------------------------- @@ -27,7 +28,6 @@ ColumnLayout { // ------------------------------------------------------------------------- - property bool _bindToEnd: false property bool _tryToLoadMoreEntries: true // ------------------------------------------------------------------------- @@ -247,6 +247,7 @@ ColumnLayout { onValidText: { this.text = '' + _bindToEnd = true proxyModel.sendMessage(text) } }