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({
|
channel = await Channel.create({
|
||||||
name,
|
name,
|
||||||
type,
|
type,
|
||||||
owner_id: creator_user_id,
|
owner_id: type === ChannelType.GROUP_DM ? creator_user_id : undefined,
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
last_message_id: undefined,
|
last_message_id: undefined,
|
||||||
recipients: channelRecipients.map((x) =>
|
recipients: channelRecipients.map((x) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user