From ba79f62fdad27a9fa9cd3784989e8d697136ae5e Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Wed, 11 May 2022 12:01:14 +0300 Subject: [PATCH] fix(StatusTagSelector): Updated names list filtering (#659) Fixes: https://github.com/status-im/status-desktop/issues/5642 --- src/StatusQ/Components/StatusTagSelector.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusTagSelector.qml b/src/StatusQ/Components/StatusTagSelector.qml index 3f6c2591..5ee33282 100644 --- a/src/StatusQ/Components/StatusTagSelector.qml +++ b/src/StatusQ/Components/StatusTagSelector.qml @@ -139,7 +139,8 @@ Item { if (text !== "") { for (var i = 0; i < inputModel.count; i++ ) { var entry = inputModel.get(i); - if (entry.name.toLowerCase().includes(text.toLowerCase())) { + if (entry.name.toLowerCase().includes(text.toLowerCase()) && + !find(namesModel, function(item) { return item.name === entry.name })) { sortedList.append({"publicId": entry.publicId, "name": entry.name, "icon": entry.icon, "isIdenticon": entry.isIdenticon, "onlineStatus": entry.onlineStatus});