Node.js based forum software built for the modern web
parseInt uid in room users check (#7988)
uplift1aa520b7a05a
diff --git a/src/messaging/rooms.js b/src/messaging/rooms.jsindex eea437f200..f2c93b18bc 100644--- a/src/messaging/rooms.js+++ b/src/messaging/rooms.js@@ -224,7 +224,7 @@ module.exports = function (Messaging) {room.messages = messages;room.isOwner = parseInt(room.owner, 10) === parseInt(uid, 10);room.users = users.filter(function (user) {- return user && parseInt(user.uid, 10) && parseInt(user.uid, 10) !== uid;+ return user && parseInt(user.uid, 10) && parseInt(user.uid, 10) !== parseInt(uid, 10);});room.canReply = canReply;room.groupChat = room.hasOwnProperty('groupChat') ? room.groupChat : users.length > 2;