Node.js based forum software built for the modern web
remove logs
Barış Soner Uşaklı82d95ba812fd
diff --git a/src/messaging/index.js b/src/messaging/index.jsindex 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]]');}