Skip to content

Commit

Permalink
fix(metadata): Allows non moderators to send values.
Browse files Browse the repository at this point in the history
Leaves up to the backend to process or not process them.
  • Loading branch information
damencho committed Sep 4, 2024
1 parent 9ff77a9 commit 776819a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/xmpp/RoomMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ export default class RoomMetadata {
* @param {object} data - data to be stored.
*/
setMetadata(key, data) {
if (!this.isSupported() || !this.room.isModerator()) {
logger.error(`Cannot set room metadata - supported:${this.isSupported()},
moderator:${this.room.isModerator()}`);
if (!this.isSupported()) {
logger.error(`Cannot set room metadata - supported:${this.isSupported()}`);

return;
}
Expand Down

0 comments on commit 776819a

Please sign in to comment.