1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added localization override.

This commit is contained in:
Ylian Saint-Hilaire 2019-07-26 14:37:53 -07:00
parent 237e371d17
commit 1694e52294
4 changed files with 46 additions and 10 deletions

View file

@ -310,11 +310,6 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Send user information to web socket, this is the first thing we send
try { ws.send(JSON.stringify({ action: 'userinfo', userinfo: parent.CloneSafeUser(parent.users[user._id]) })); } catch (ex) { }
// Send user web state
db.Get('ws' + user._id, function (err, docs) {
if (docs.length == 1) { try { ws.send(JSON.stringify({ action: 'event', event: { action: 'userWebState', state: docs[0].state, nolog: 1 } })); } catch (ex) { } }
});
// We are all set, start receiving data
ws._socket.resume();
});