Skip to content

Commit 57b07b6

Browse files
committed
fix: respect commands config from dashboard
1 parent d0d2203 commit 57b07b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ const ChannelWithContext = <
560560
handleRetry,
561561
handleThreadReply,
562562
hasCameraPicker = isImagePickerAvailable(),
563-
hasCommands = (channel?.getConfig()?.commands ?? []).length > 0,
564563
hasCreatePoll,
565564
// If pickDocument isn't available, default to hiding the file picker
566565
hasFilePicker = isDocumentPickerAvailable(),
@@ -1828,7 +1827,7 @@ const ChannelWithContext = <
18281827
FileUploadPreview,
18291828
handleAttachButtonPress,
18301829
hasCameraPicker,
1831-
hasCommands,
1830+
hasCommands: (getChannelConfigSafely()?.commands ?? []).length > 0,
18321831
hasFilePicker,
18331832
hasImagePicker,
18341833
ImageUploadPreview,

0 commit comments

Comments
 (0)