Skip to content

Commit c0ad199

Browse files
committed
fix: make camera roll usage optional using a channel prop
1 parent d7b6434 commit c0ad199

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

package/src/components/MessageInput/AttachButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import {
1515
import { useTheme } from '../../contexts/themeContext/ThemeContext';
1616
import { Attach } from '../../icons/Attach';
1717

18-
import { isImageMediaLibraryAvailable } from '../../native';
19-
2018
type AttachButtonPropsWithContext = Pick<
2119
MessageInputContextValue,
2220
'handleAttachButtonPress' | 'toggleAttachmentPicker'
@@ -77,7 +75,7 @@ const AttachButtonWithContext = (props: AttachButtonPropsWithContext) => {
7775
handleAttachButtonPress();
7876
return;
7977
}
80-
if (isImageMediaLibraryAvailable() && !disableAttachmentPicker) {
78+
if (!disableAttachmentPicker) {
8179
toggleAttachmentPicker();
8280
} else {
8381
attachButtonHandler();

0 commit comments

Comments
 (0)