Prosody: the first user will not be granted owner rights.
This commit is contained in:
parent
fefcf1f08a
commit
0cc57dfc12
@ -17,7 +17,11 @@ interface RoomDefaults {
|
|||||||
// moderated: boolean
|
// moderated: boolean
|
||||||
// archiving: boolean
|
// archiving: boolean
|
||||||
}
|
}
|
||||||
// affiliations: RoomAffiliation[]
|
affiliations?: Array<{
|
||||||
|
jid: string
|
||||||
|
affiliation: 'outcast' | 'none' | 'member' | 'admin' | 'owner'
|
||||||
|
nick?: string
|
||||||
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
async function initApiRouter (options: RegisterServerOptions): Promise<Router> {
|
async function initApiRouter (options: RegisterServerOptions): Promise<Router> {
|
||||||
@ -43,7 +47,8 @@ async function initApiRouter (options: RegisterServerOptions): Promise<Router> {
|
|||||||
description: '',
|
description: '',
|
||||||
public: false,
|
public: false,
|
||||||
subject: video.name
|
subject: video.name
|
||||||
}
|
},
|
||||||
|
affiliations: [] // so that the first user will not be moderator/admin
|
||||||
}
|
}
|
||||||
res.json(roomDefaults)
|
res.json(roomDefaults)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user