diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index a599572..c15b2ca 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -295,7 +295,7 @@ channel = await Channel.create({ name, type, - owner_id: creator_user_id, + owner_id: type === ChannelType.GROUP_DM ? creator_user_id : undefined, created_at: new Date(), last_message_id: undefined, recipients: channelRecipients.map((x) =>