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_room_locking', false)
|
||||||
this.muc.set('muc_tombstones', false)
|
this.muc.set('muc_tombstones', false)
|
||||||
this.muc.set('muc_room_default_language', 'en')
|
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_persistent', false)
|
||||||
this.muc.set('muc_room_default_members_only', false)
|
this.muc.set('muc_room_default_members_only', false)
|
||||||
this.muc.set('muc_room_default_moderated', false)
|
this.muc.set('muc_room_default_moderated', false)
|
||||||
|
@ -6,17 +6,17 @@ interface RoomDefaults {
|
|||||||
config: {
|
config: {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
// language: string
|
language?: string
|
||||||
// persistent: boolean
|
persistent?: boolean
|
||||||
public: boolean
|
public?: boolean
|
||||||
// members_only: boolean
|
members_only?: boolean
|
||||||
// allow_member_invites: boolean
|
allow_member_invites?: boolean
|
||||||
// public_jids: boolean
|
public_jids?: boolean
|
||||||
subject: string
|
subject: string
|
||||||
// changesubject: boolean
|
changesubject?: boolean
|
||||||
// // historylength: number
|
// historylength: number
|
||||||
// moderated: boolean
|
moderated?: boolean
|
||||||
// archiving: boolean
|
archiving?: boolean
|
||||||
}
|
}
|
||||||
affiliations?: Array<{
|
affiliations?: Array<{
|
||||||
jid: string
|
jid: string
|
||||||
@ -59,12 +59,11 @@ async function initApiRouter (options: RegisterServerOptions): Promise<Router> {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fill missing informations
|
|
||||||
const roomDefaults: RoomDefaults = {
|
const roomDefaults: RoomDefaults = {
|
||||||
config: {
|
config: {
|
||||||
name: video.name,
|
name: video.name,
|
||||||
description: '',
|
description: '',
|
||||||
public: false,
|
language: video.language,
|
||||||
subject: video.name
|
subject: video.name
|
||||||
},
|
},
|
||||||
affiliations: [] // so that the first user will not be moderator/admin
|
affiliations: [] // so that the first user will not be moderator/admin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user