diff --git a/server/lib/prosody/config/content.ts b/server/lib/prosody/config/content.ts index 6c96f498..5dc19ed0 100644 --- a/server/lib/prosody/config/content.ts +++ b/server/lib/prosody/config/content.ts @@ -145,7 +145,7 @@ class ProsodyConfigContent { this.muc.set('muc_room_locking', false) this.muc.set('muc_tombstones', false) this.muc.set('muc_room_default_language', 'en') - this.muc.set('muc_room_default_public', true) + this.muc.set('muc_room_default_public', false) this.muc.set('muc_room_default_persistent', false) this.muc.set('muc_room_default_members_only', false) this.muc.set('muc_room_default_moderated', false) diff --git a/server/lib/routers/api.ts b/server/lib/routers/api.ts index c79f7e2d..7806debd 100644 --- a/server/lib/routers/api.ts +++ b/server/lib/routers/api.ts @@ -6,17 +6,17 @@ interface RoomDefaults { config: { name: string description: string - // language: string - // persistent: boolean - public: boolean - // members_only: boolean - // allow_member_invites: boolean - // public_jids: boolean + language?: string + persistent?: boolean + public?: boolean + members_only?: boolean + allow_member_invites?: boolean + public_jids?: boolean subject: string - // changesubject: boolean - // // historylength: number - // moderated: boolean - // archiving: boolean + changesubject?: boolean + // historylength: number + moderated?: boolean + archiving?: boolean } affiliations?: Array<{ jid: string @@ -59,12 +59,11 @@ async function initApiRouter (options: RegisterServerOptions): Promise { return } - // TODO: fill missing informations const roomDefaults: RoomDefaults = { config: { name: video.name, description: '', - public: false, + language: video.language, subject: video.name }, affiliations: [] // so that the first user will not be moderator/admin