diff --git a/src/websockets.js b/src/websockets.js index 0a6218a492..bb52393b42 100644 --- a/src/websockets.js +++ b/src/websockets.js @@ -341,10 +341,7 @@ module.exports.init = function(io) { user.setUserFields(uid, { showemail: data.showemail }, function(err, result) { - if(err) { - return callback(false); - } - callback(true); + callback(err); }); } });