diff --git a/public/language/en-GB/error.json b/public/language/en-GB/error.json index 072fbdcc88..fb2951e188 100644 --- a/public/language/en-GB/error.json +++ b/public/language/en-GB/error.json @@ -173,7 +173,6 @@ "no-session-found": "No login session found!", "not-in-room": "User not in room", - "no-users-in-room": "No users in this room", "cant-kick-self": "You can't kick yourself from the group", "no-users-selected": "No user(s) selected", "invalid-home-page-route": "Invalid home page route", diff --git a/src/messaging/index.js b/src/messaging/index.js index d6724cacd2..078d660ddc 100644 --- a/src/messaging/index.js +++ b/src/messaging/index.js @@ -344,13 +344,6 @@ Messaging.canMessageRoom = function (uid, roomId, callback) { return next(new Error('[[error:not-in-room]]')); } - Messaging.getUserCountInRoom(roomId, next); - }, - function (count, next) { - if (count < 2) { - return next(new Error('[[error:no-users-in-room]]')); - } - user.getUserFields(uid, ['banned', 'email:confirmed'], next); }, function (userData, next) {