Use chat list proxy model only if filtering is active
This commit is contained in:
parent
87255e123a
commit
1317f6532e
1 changed files with 1 additions and 2 deletions
|
@ -65,7 +65,6 @@ Page {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
overviewPage.chatListCreated = true;
|
overviewPage.chatListCreated = true;
|
||||||
chatListModel.redrawModel();
|
chatListModel.redrawModel();
|
||||||
chatListView.model = chatListProxyModel;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,7 +311,7 @@ Page {
|
||||||
opacity: overviewPage.chatListCreated ? 1 : 0
|
opacity: overviewPage.chatListCreated ? 1 : 0
|
||||||
Behavior on opacity { NumberAnimation {} }
|
Behavior on opacity { NumberAnimation {} }
|
||||||
|
|
||||||
model: chatListModel
|
model: chatSearchField.text !== "" ? chatListProxyModel : chatListModel
|
||||||
delegate: ChatListViewItem {
|
delegate: ChatListViewItem {
|
||||||
ownUserId: overviewPage.ownUserId
|
ownUserId: overviewPage.ownUserId
|
||||||
isVerified: is_verified
|
isVerified: is_verified
|
||||||
|
|
Loading…
Reference in a new issue