From 21e4818af7324ff00a4e87e3f9f5f3946631fd60 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Thu, 2 Feb 2023 00:04:17 -0300 Subject: [PATCH] [FIX] Team icons on Share View and searching on RoomsListView (#4833) * [FIX] Team icons on Share View * fix the teams when searching --- app/lib/methods/search.ts | 3 ++- app/views/ShareListView/index.tsx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/lib/methods/search.ts b/app/lib/methods/search.ts index ac4e265e..ee8fdca9 100644 --- a/app/lib/methods/search.ts +++ b/app/lib/methods/search.ts @@ -38,7 +38,8 @@ export const localSearchSubscription = async ({ text = '', filterUsers = true, f t: item.t, encrypted: item.encrypted, lastMessage: item.lastMessage, - status: item.status + status: item.status, + teamMain: item.teamMain })) as ISearchLocal[]; return search; diff --git a/app/views/ShareListView/index.tsx b/app/views/ShareListView/index.tsx index a0c718c8..5e0bc61f 100644 --- a/app/views/ShareListView/index.tsx +++ b/app/views/ShareListView/index.tsx @@ -250,7 +250,8 @@ class ShareListView extends React.Component { prid: item.prid, uids: item.uids, usernames: item.usernames, - topic: item.topic + topic: item.topic, + teamMain: item.teamMain })); }; @@ -380,6 +381,7 @@ class ShareListView extends React.Component { type={item.prid ? 'discussion' : item.t} onPress={() => this.shareMessage(item)} testID={`share-extension-item-${item.name}`} + teamMain={item.teamMain} /> ); };