Skip to content

Commit d6fafe9

Browse files
authored
fix: optionally render attachment picker as per media library availability (#3218)
1 parent d6cfa69 commit d6fafe9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,9 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
19721972
<MessageComposerProvider value={messageComposerContext}>
19731973
<MessageInputProvider value={inputMessageInputContext}>
19741974
<View style={{ height: '100%' }}>{children}</View>
1975-
<AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />
1975+
{isImageMediaLibraryAvailable() && (
1976+
<AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />
1977+
)}
19761978
</MessageInputProvider>
19771979
</MessageComposerProvider>
19781980
</AttachmentPickerProvider>

0 commit comments

Comments
 (0)