From c768755ae43ff469b88ca1d42ee07b3dc72b2609 Mon Sep 17 00:00:00 2001 From: or-else Date: Tue, 11 Sep 2018 16:55:30 +0300 Subject: [PATCH] fix for issues/17 --- src/webapp.jsx | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/src/webapp.jsx b/src/webapp.jsx index 923d092d..5edf81b1 100644 --- a/src/webapp.jsx +++ b/src/webapp.jsx @@ -1080,7 +1080,7 @@ class ChipInput extends React.Component { this.state.sortedChips.map((item) => { chips.push( { foundContacts.push(s); }); - let merged = {}; - for (const c of foundContacts.concat(this.state.chatList)) { - merged[c.topic] = c; - } this.setState({ searchResults: foundContacts, - searchableContacts: Object.values(merged) + searchableContacts: TinodeWeb.prepareSearchableContacts(this.state.chatList, foundContacts) }); }