mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
ESlint object-curly-spacing
This commit is contained in:
@@ -254,7 +254,7 @@ SocketModules.chats.markRead = function (socket, roomId, callback) {
|
||||
}
|
||||
|
||||
Messaging.pushUnreadCount(socket.uid);
|
||||
server.in('uid_' + socket.uid).emit('event:chats.markedAsRead', {roomId: roomId});
|
||||
server.in('uid_' + socket.uid).emit('event:chats.markedAsRead', { roomId: roomId });
|
||||
|
||||
if (results.uidsInRoom.indexOf(socket.uid.toString()) === -1) {
|
||||
return callback();
|
||||
@@ -300,7 +300,7 @@ SocketModules.chats.renameRoom = function (socket, data, callback) {
|
||||
Messaging.getUidsInRoom(data.roomId, 0, -1, next);
|
||||
},
|
||||
function (uids, next) {
|
||||
var eventData = {roomId: data.roomId, newName: validator.escape(String(data.newName))};
|
||||
var eventData = { roomId: data.roomId, newName: validator.escape(String(data.newName)) };
|
||||
uids.forEach(function (uid) {
|
||||
server.in('uid_' + uid).emit('event:chats.roomRename', eventData);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user