From b4185d0b4a6f04d30eca71daca0189fd161c79bf Mon Sep 17 00:00:00 2001 From: Matvei Andrienko Date: Wed, 11 Sep 2024 12:03:15 +0200 Subject: [PATCH] fix: allow hydrating thread's channel with an empty members list --- src/thread.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/thread.ts b/src/thread.ts index d164b5f34e..9ab959d621 100644 --- a/src/thread.ts +++ b/src/thread.ts @@ -77,10 +77,7 @@ export class Thread { const channel = client.channel(threadData.channel.type, threadData.channel.id, { name: threadData.channel.name, }); - - if (threadData.channel.members) { - channel._hydrateMembers(threadData.channel.members); - } + channel._hydrateMembers(threadData.channel.members ?? []); this.state = new StateStore>({ active: false,