mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-20 10:55:23 +00:00
only for gorups
This commit is contained in:
@@ -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