only for gorups

This commit is contained in:
MathMan05 2025-11-20 14:36:16 -06:00
parent c0c97cb444
commit ad883871be

View File

@ -295,7 +295,7 @@ export class Channel extends BaseClass {
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) =>