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

Version 0.7.4

This commit is contained in:
Ylian Saint-Hilaire 2020-11-27 21:40:30 -08:00
parent b0b3339c4b
commit b11b974873
6 changed files with 1923 additions and 1887 deletions

View file

@ -1336,6 +1336,14 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
else if (command.type == 'msg') { obj.sessions.msg = command.value; }
else if (command.type == 'app') { obj.sessions.app = command.value; }
}
// Any "help" session must have an associated app, if not, remove it.
if (obj.sessions.help != null) {
for (var i in obj.sessions.help) { if (obj.sessions.app[i] == null) { delete obj.sessions.help[i]; } }
if (Object.keys(obj.sessions.help).length == 0) { delete obj.sessions.help; }
}
// Inform everyone of updated sessions
obj.updateSessions();
break;
}