mod_muc_http_defaults WIP.
This commit is contained in:
parent
834611dfe5
commit
75bbfc9159
@ -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)
|
||||
|
@ -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<Router> {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user