Fixed filtering contacts issue on when create new chat. Fixes #1705

This commit is contained in:
staked-smart-ace 2021-01-21 11:21:39 +04:00 committed by Iuri Matias
parent 5b3d202797
commit 8acdaff6f9
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ ModalPopup {
chatsModel.joinChat(pubKey, Constants.chatTypeOneToOne);
popup.close()
}
visible: (model.isContact && (chatKey.text === "" ||
model.name.toLowerCase().includes(chatKey.text.toLowerCase()) ||
model.address.toLowerCase().includes(chatKey.text.toLowerCase()))) ||
popup.pubKey === model.pubKey
}
}