Fix joining channels from the find channels screen (#7732)
* Fix joining channels from the find channels screen * Fix lint --------- Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
cc96982d24
commit
8bd9cac9f5
1 changed files with 6 additions and 2 deletions
|
|
@ -219,7 +219,8 @@ const FilteredList = ({
|
|||
/>
|
||||
);
|
||||
}
|
||||
if ('teamId' in item || 'team_id' in item) {
|
||||
|
||||
if ('teamId' in item) {
|
||||
return (
|
||||
<ChannelItem
|
||||
channel={item}
|
||||
|
|
@ -230,7 +231,9 @@ const FilteredList = ({
|
|||
testID='find_channels.filtered_list.channel_item'
|
||||
/>
|
||||
);
|
||||
} else if ('username' in item) {
|
||||
}
|
||||
|
||||
if ('username' in item) {
|
||||
return (
|
||||
<UserItem
|
||||
onUserPress={onOpenDirectMessage}
|
||||
|
|
@ -244,6 +247,7 @@ const FilteredList = ({
|
|||
return (
|
||||
<ChannelItem
|
||||
channel={item}
|
||||
isOnCenterBg={true}
|
||||
onPress={onJoinChannel}
|
||||
showTeamName={showTeamName}
|
||||
shouldHighlightState={true}
|
||||
|
|
|
|||
Loading…
Reference in a new issue