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:
Julian Lam
2018-01-09 16:30:16 -05:00
parent 970c8b6f64
commit 19e53ab61b
5 changed files with 73 additions and 15 deletions

View File

@@ -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),