Updating slow mode duration on existing rooms when changing channel options (related to #332).

This commit is contained in:
John Livingston
2024-03-07 17:33:18 +01:00
parent 08b84899f6
commit e67b21dd9f
5 changed files with 48 additions and 9 deletions

View File

@ -106,7 +106,7 @@ async function initChannelConfiguration (options: RegisterServerOptions): Promis
// FIXME: this piece of code should not be in this file (nothing to do with initChannelConfiguration,
// but will be more efficient to add here, as we already tested hasChat).
// Note: no need to await here, would only degrade performances.
updateProsodyRoom(options, video.channelId, video.uuid, {
updateProsodyRoom(options, video.uuid, {
name: video.name
}).then(
() => {},
@ -133,7 +133,7 @@ async function initChannelConfiguration (options: RegisterServerOptions): Promis
if (settings['prosody-room-type'] === 'channel') {
const jid = 'channel.' + channel.id.toString()
// Note: no need to await here, would only degrade performances.
updateProsodyRoom(options, channel.id, jid, {
updateProsodyRoom(options, jid, {
name: channel.displayName
}).then(
() => {},