Skip to content

Commit ef467cd

Browse files
committed
fix: use channel_id and channel_type values from event channel.visible (#2730)
(cherry picked from commit d5f743b)
1 parent 57e2dcd commit ef467cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ChannelList/hooks/useChannelListShape.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,14 @@ export const useChannelListShapeDefaults = <SCG extends ExtendableGenerics>() =>
362362
return customHandler(setChannels, event);
363363
}
364364

365-
if (!event.channel) {
365+
if (!event.channel_id && !event.channel_type) {
366366
return;
367367
}
368368

369369
const channel = await getChannel({
370370
client,
371-
id: event.channel.id,
372-
type: event.channel.type,
371+
id: event.channel_id,
372+
type: event.channel_type,
373373
});
374374

375375
const considerArchivedChannels = shouldConsiderArchivedChannels(filters);

0 commit comments

Comments
 (0)