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 d0d2203 commit 57b07b6Copy full SHA for 57b07b6
package/src/components/Channel/Channel.tsx
@@ -560,7 +560,6 @@ const ChannelWithContext = <
560
handleRetry,
561
handleThreadReply,
562
hasCameraPicker = isImagePickerAvailable(),
563
- hasCommands = (channel?.getConfig()?.commands ?? []).length > 0,
564
hasCreatePoll,
565
// If pickDocument isn't available, default to hiding the file picker
566
hasFilePicker = isDocumentPickerAvailable(),
@@ -1828,7 +1827,7 @@ const ChannelWithContext = <
1828
1827
FileUploadPreview,
1829
handleAttachButtonPress,
1830
hasCameraPicker,
1831
- hasCommands,
+ hasCommands: (getChannelConfigSafely()?.commands ?? []).length > 0,
1832
hasFilePicker,
1833
hasImagePicker,
1834
ImageUploadPreview,
0 commit comments