mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
Lots o' chat changes
- Added chat room management (instead of tagsinput) - Chat leave button in chat options dropdown - Refreshing participants when user is added - Updated autocomplete module so that it can be shown above a modal (z-index 100005 > 20000) - Using cant-chat-with-yourself source string, which wasn't defined before, but was still used
This commit is contained in:
@@ -228,7 +228,7 @@ SocketModules.chats.addUserToRoom = function (socket, data, callback) {
|
||||
return next(new Error('[[error:no-user]]'));
|
||||
}
|
||||
if (socket.uid === parseInt(uid, 10)) {
|
||||
return next(new Error('[[error:cant-add-self-to-chat-room]]'));
|
||||
return next(new Error('[[error:cant-chat-with-yourself]]'));
|
||||
}
|
||||
async.parallel({
|
||||
settings: async.apply(user.getSettings, uid),
|
||||
|
||||
Reference in New Issue
Block a user