Skip to content

Commit

Permalink
add rename function feature check as well, seemed to be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodiko committed Aug 24, 2023
1 parent f566f5e commit 7a51126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/xmpp/BreakoutRooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class BreakoutRooms {
* @param {string} subject - A new subject for the breakout room.
*/
renameBreakoutRoom(breakoutRoomJid, subject) {
if (!this.isSupported() || !this.room.isModerator()) {
if (!this.isSupported() || !this.isFeatureSupported('rename') || !this.room.isModerator()) {
logger.error(`Cannot rename breakout room - supported:${this.isSupported()},
moderator:${this.room.isModerator()}`);

Expand Down

0 comments on commit 7a51126

Please sign in to comment.