From cb7bae00c4beeccbae7c8673be7a29b36e0e2e1a Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 30 Aug 2024 09:01:10 -0500 Subject: [PATCH] fix(metadata): Allows non moderators to send values. Leaves up to the backend to process or not process them. --- modules/xmpp/RoomMetadata.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/xmpp/RoomMetadata.ts b/modules/xmpp/RoomMetadata.ts index 267207a3d8..d7592fa28a 100644 --- a/modules/xmpp/RoomMetadata.ts +++ b/modules/xmpp/RoomMetadata.ts @@ -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; }