From 791b3d3e270364721413984879999de257684177 Mon Sep 17 00:00:00 2001 From: car031 Date: Thu, 26 Dec 2024 14:21:44 +0100 Subject: [PATCH] Correct WebsocketTool events distribution --- .../main/java/com/logicaldoc/web/websockets/WebsocketTool.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logicaldoc-webapp/src/main/java/com/logicaldoc/web/websockets/WebsocketTool.java b/logicaldoc-webapp/src/main/java/com/logicaldoc/web/websockets/WebsocketTool.java index a4e1af5ec..503f79b06 100644 --- a/logicaldoc-webapp/src/main/java/com/logicaldoc/web/websockets/WebsocketTool.java +++ b/logicaldoc-webapp/src/main/java/com/logicaldoc/web/websockets/WebsocketTool.java @@ -35,6 +35,7 @@ public class WebsocketTool { public void showMessage(Session session, String message, String level) { WebsocketMessage command = new WebsocketMessage(session.getSid(), "command"); command.setCommand("message"); + command.setTenantId(session.getTenantId()); command.setUserId(session.getUserId()); command.setUsername(session.getUsername()); command.setPayload(message); @@ -56,6 +57,7 @@ public void showMessage(Session session, String message, String level) { public void openUrl(Session session, String url, String target) { WebsocketMessage command = new WebsocketMessage(session.getSid(), "command"); command.setCommand("openurl"); + command.setTenantId(session.getTenantId()); command.setUserId(session.getUserId()); command.setUsername(session.getUsername()); command.setPayload(url);