Use chat list proxy model only if filtering is active

This commit is contained in:
Sebastian Wolf 2020-12-17 09:24:20 +01:00
parent 87255e123a
commit 1317f6532e
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

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