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 76ca4b1 commit 322b242Copy full SHA for 322b242
package/src/components/Channel/Channel.tsx
@@ -562,6 +562,7 @@ const ChannelWithContext = <
562
handleRetry,
563
handleThreadReply,
564
hasCameraPicker = isImagePickerAvailable(),
565
+ hasCommands,
566
hasCreatePoll,
567
// If pickDocument isn't available, default to hiding the file picker
568
hasFilePicker = isDocumentPickerAvailable(),
@@ -1830,7 +1831,7 @@ const ChannelWithContext = <
1830
1831
FileUploadPreview,
1832
handleAttachButtonPress,
1833
hasCameraPicker,
- hasCommands: (getChannelConfigSafely()?.commands ?? []).length > 0,
1834
+ hasCommands: hasCommands ?? (getChannelConfigSafely()?.commands ?? []).length > 0,
1835
hasFilePicker,
1836
hasImagePicker,
1837
ImageUploadPreview,
0 commit comments