Skip to content

Commit d5f743b

Browse files
authored
fix: use channel_id and channel_type values from event channel.visible (#2730)
1 parent c69e8d0 commit d5f743b

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
@@ -349,14 +349,14 @@ export const useChannelListShapeDefaults = () => {
349349
return customHandler(setChannels, event);
350350
}
351351

352-
if (!event.channel) {
352+
if (!event.channel_id && !event.channel_type) {
353353
return;
354354
}
355355

356356
const channel = await getChannel({
357357
client,
358-
id: event.channel.id,
359-
type: event.channel.type,
358+
id: event.channel_id,
359+
type: event.channel_type,
360360
});
361361

362362
const considerArchivedChannels = shouldConsiderArchivedChannels(filters);

0 commit comments

Comments
 (0)