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);