Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/src/components/Channel/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ const ChannelWithContext = <
handleRetry,
handleThreadReply,
hasCameraPicker = isImagePickerAvailable(),
hasCommands = true,
hasCommands = (channel.getConfig()?.commands ?? []).length > 0,
hasCreatePoll,
// If pickDocument isn't available, default to hiding the file picker
hasFilePicker = isDocumentPickerAvailable(),
Expand Down
2 changes: 2 additions & 0 deletions package/src/components/Channel/__tests__/Channel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ describe('Channel', () => {
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
channel = chatClient.channel('messaging', mockedChannel.id);
channel.cid = mockedChannel.channel.cid;
const getConfigSpy = jest.fn();
channel.getConfig = getConfigSpy;
});

afterEach(() => {
Expand Down
Loading