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) }); }