@@ -371,10 +371,6 @@ export type ChannelPropsWithContext<
371371 * Additional props passed to keyboard avoiding view
372372 */
373373 additionalKeyboardAvoidingViewProps ?: Partial < KeyboardAvoidingViewProps > ;
374- /**
375- * Disables the channel UI if the channel is frozen
376- */
377- disableIfFrozenChannel ?: boolean ;
378374 /**
379375 * When true, disables the KeyboardCompatibleView wrapper
380376 *
@@ -503,7 +499,6 @@ const ChannelWithContext = <
503499 CreatePollContent,
504500 DateHeader = DateHeaderDefault ,
505501 deletedMessagesVisibilityType = 'always' ,
506- disableIfFrozenChannel = true ,
507502 disableKeyboardCompatibleView = false ,
508503 disableTypingIndicator,
509504 dismissKeyboardOnMessageTouch = true ,
@@ -1596,19 +1591,14 @@ const ChannelWithContext = <
15961591 }
15971592 } ;
15981593
1599- const disabledValue = useMemo (
1600- ( ) => ! ! channel ?. data ?. frozen && disableIfFrozenChannel ,
1601- [ channel . data ?. frozen , disableIfFrozenChannel ] ,
1602- ) ;
1603-
16041594 const ownCapabilitiesContext = useCreateOwnCapabilitiesContext ( {
16051595 channel,
16061596 overrideCapabilities : overrideOwnCapabilities ,
16071597 } ) ;
16081598
16091599 const channelContext = useCreateChannelContext ( {
16101600 channel,
1611- disabled : disabledValue ,
1601+ disabled : ! ! channel ?. data ?. frozen ,
16121602 EmptyStateIndicator,
16131603 enableMessageGroupingByUser,
16141604 enforceUniqueReaction,
0 commit comments