We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b6434 commit c0ad199Copy full SHA for c0ad199
package/src/components/MessageInput/AttachButton.tsx
@@ -15,8 +15,6 @@ import {
15
import { useTheme } from '../../contexts/themeContext/ThemeContext';
16
import { Attach } from '../../icons/Attach';
17
18
-import { isImageMediaLibraryAvailable } from '../../native';
19
-
20
type AttachButtonPropsWithContext = Pick<
21
MessageInputContextValue,
22
'handleAttachButtonPress' | 'toggleAttachmentPicker'
@@ -77,7 +75,7 @@ const AttachButtonWithContext = (props: AttachButtonPropsWithContext) => {
77
75
handleAttachButtonPress();
78
76
return;
79
}
80
- if (isImageMediaLibraryAvailable() && !disableAttachmentPicker) {
+ if (!disableAttachmentPicker) {
81
toggleAttachmentPicker();
82
} else {
83
attachButtonHandler();
0 commit comments