Fix: video owner must be room owner, not only admin. Otherwise they can't edit room parameters (including slow mode settings).

This commit is contained in:
John Livingston 2024-02-22 18:08:06 +01:00
parent 48fb636bf5
commit 3ec09ce267
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 8.3.1
* Fix: video owner must be room owner, not only admin. Otherwise they can't edit room parameters (including slow mode settings).
## 8.3.0
### New features

View File

@ -43,7 +43,7 @@ async function _addAffiliationByChannelId (
} else {
const userJid = username + '@' + prosodyDomain
if (!(userJid in r)) { // don't override if already owner!
r[userJid] = 'admin'
r[userJid] = 'owner'
}
}
} catch (error) {