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: {
|
||||
overviewPage.chatListCreated = true;
|
||||
chatListModel.redrawModel();
|
||||
chatListView.model = chatListProxyModel;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -312,7 +311,7 @@ Page {
|
|||
opacity: overviewPage.chatListCreated ? 1 : 0
|
||||
Behavior on opacity { NumberAnimation {} }
|
||||
|
||||
model: chatListModel
|
||||
model: chatSearchField.text !== "" ? chatListProxyModel : chatListModel
|
||||
delegate: ChatListViewItem {
|
||||
ownUserId: overviewPage.ownUserId
|
||||
isVerified: is_verified
|
||||
|
|
Loading…
Reference in a new issue