From 82d95ba812fd95340f6d50ac93800c2e4bd8c804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 18 Aug 2023 21:42:21 -0400 Subject: [PATCH] remove logs --- src/messaging/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/messaging/index.js b/src/messaging/index.js index 0d58e0c019..789b6de2a0 100644 --- a/src/messaging/index.js +++ b/src/messaging/index.js @@ -371,7 +371,6 @@ Messaging.canMessageUser = async (uid, toUid) => { }; Messaging.canMessageRoom = async (uid, roomId) => { - console.log('can message room', uid, roomId); if (meta.config.disableChat || uid <= 0) { throw new Error('[[error:chat-disabled]]'); } @@ -385,7 +384,7 @@ Messaging.canMessageRoom = async (uid, roomId) => { if (!roomData) { throw new Error('[[error:no-room]]'); } - console.log('can chat', canChat); + if (!inRoom) { throw new Error('[[error:not-in-room]]'); }