diff --git a/app/components/channel_item/index.ts b/app/components/channel_item/index.ts index 8da82b20c..b637cffec 100644 --- a/app/components/channel_item/index.ts +++ b/app/components/channel_item/index.ts @@ -21,12 +21,11 @@ import type {WithDatabaseArgs} from '@typings/database/database'; type EnhanceProps = WithDatabaseArgs & { channel: ChannelModel; showTeamName?: boolean; - isCategoryMuted?: boolean; } const observeIsMutedSetting = (mc: MyChannelModel) => mc.settings.observe().pipe(switchMap((s) => of$(s?.notifyProps?.mark_unread === 'mention'))); -const enhance = withObservables(['channel', 'showTeamName', 'isCategoryMuted'], ({channel, database, showTeamName, isCategoryMuted}: EnhanceProps) => { +const enhance = withObservables(['channel', 'showTeamName'], ({channel, database, showTeamName}: EnhanceProps) => { const currentUserId = observeCurrentUserId(database); const myChannel = observeMyChannel(database, channel.id); @@ -47,7 +46,6 @@ const enhance = withObservables(['channel', 'showTeamName', 'isCategoryMuted'], } return observeIsMutedSetting(mc); }), - switchMap((muted) => of$(isCategoryMuted || muted)), ); let teamDisplayName = of$(''); diff --git a/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx b/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx index 932d8afb5..e2c4554db 100644 --- a/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx +++ b/app/screens/home/channel_list/categories_list/categories/body/category_body.tsx @@ -43,7 +43,6 @@ const CategoryBody = ({sortedChannels, category, hiddenChannelIds, limit, onChan channel={item} testID={`category.${category.displayName.replace(/ /g, '_').toLocaleLowerCase()}.channel_list_item`} onPress={onChannelSwitch} - isCategoryMuted={category.muted} key={item.id} /> );