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

This commit is contained in:
Ronan Abhamon 2017-01-10 12:02:50 +01:00
parent 66c8bb6dca
commit 065c701af5

View file

@ -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)
}
}