Fix #87: updating chat room title when video/channel title is changed:

* renaming module list_rooms to manage_rooms
* added some API to update room info
* when a video or a channel is updated, sending an API call to update
  the room
This commit is contained in:
John Livingston
2024-03-07 16:22:14 +01:00
parent 2115b352a4
commit 4dd4f18965
10 changed files with 205 additions and 51 deletions

View File

@ -415,9 +415,9 @@ class ProsodyConfigContent {
this.muc.set('muc_room_default_persistent', true)
}
useListRoomsApi (apikey: string): void {
this.muc.add('modules_enabled', 'http_peertubelivechat_list_rooms')
this.muc.set('peertubelivechat_list_rooms_apikey', apikey)
useManageRoomsApi (apikey: string): void {
this.muc.add('modules_enabled', 'http_peertubelivechat_manage_rooms')
this.muc.set('peertubelivechat_manage_rooms_apikey', apikey)
}
useTestModule (prosodyApikey: string, apiurl: string): void {