[FIX] Team icons on Share View and searching on RoomsListView (#4833)

* [FIX] Team icons on Share View

* fix the teams when searching
This commit is contained in:
Reinaldo Neto 2023-02-02 00:04:17 -03:00 committed by GitHub
parent 4de7c83e80
commit 21e4818af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -250,7 +250,8 @@ class ShareListView extends React.Component<IShareListViewProps, IState> {
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<IShareListViewProps, IState> {
type={item.prid ? 'discussion' : item.t}
onPress={() => this.shareMessage(item)}
testID={`share-extension-item-${item.name}`}
teamMain={item.teamMain}
/>
);
};