From 20303607f3f761b0f6297d82ffc8e7ece6ed5cc5 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Sun, 17 May 2020 01:59:04 -0700 Subject: [PATCH] Updated KVM Toast to be compatible with RDP --- agents/meshcore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index a6fea1e0..c238df74 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -1551,7 +1551,7 @@ function createMeshCore(agent) { this.ws.write(JSON.stringify({ ctrlChannel: '102938', type: 'console', msg: null, msgid: 0 })); if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 1)) { // User Notifications is required - try { require('toaster').Toast('MeshCentral', this.ws.httprequest.username + " started a remote desktop session."); } catch (ex) { } + try { require('toaster').Toast('MeshCentral', this.ws.httprequest.username + " started a remote desktop session.", tsid); } catch (ex) { } } if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 0x40)) { // Connection Bar is required @@ -1595,7 +1595,7 @@ function createMeshCore(agent) { if (this.httprequest.consent && (this.httprequest.consent & 1)) { // User Notifications is required MeshServerLog("Started remote desktop with toast notification (" + this.httprequest.remoteaddr + ")", this.httprequest); - try { require('toaster').Toast('MeshCentral', this.httprequest.username + " started a remote desktop session."); } catch (ex) { } + try { require('toaster').Toast('MeshCentral', this.httprequest.username + " started a remote desktop session.", tsid); } catch (ex) { } } else { MeshServerLog("Started remote desktop without notification (" + this.httprequest.remoteaddr + ")", this.httprequest); }