Commit 065c701a authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/Chat/Chat): scroll to end when a message is sent

parent 66c8bb6d
...@@ -12,6 +12,7 @@ import Utils 1.0 ...@@ -12,6 +12,7 @@ import Utils 1.0
ColumnLayout { ColumnLayout {
property alias proxyModel: chat.model property alias proxyModel: chat.model
property bool _bindToEnd: false
property var _contactObserver: SipAddressesModel.getContactObserver(proxyModel.sipAddress) property var _contactObserver: SipAddressesModel.getContactObserver(proxyModel.sipAddress)
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -27,7 +28,6 @@ ColumnLayout { ...@@ -27,7 +28,6 @@ ColumnLayout {
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
property bool _bindToEnd: false
property bool _tryToLoadMoreEntries: true property bool _tryToLoadMoreEntries: true
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
...@@ -247,6 +247,7 @@ ColumnLayout { ...@@ -247,6 +247,7 @@ ColumnLayout {
onValidText: { onValidText: {
this.text = '' this.text = ''
_bindToEnd = true
proxyModel.sendMessage(text) proxyModel.sendMessage(text)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment