only for gorups
This commit is contained in:
parent
c0c97cb444
commit
ad883871be
@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user