diff --git a/packages/common/store/SettingsStore.js b/packages/common/store/SettingsStore.js index a91a79bc70..66599b8c85 100644 --- a/packages/common/store/SettingsStore.js +++ b/packages/common/store/SettingsStore.js @@ -374,6 +374,10 @@ class SettingsStore { return window.location.pathname === "/rooms/share"; } + get isSessionsPage() { + return window.location.pathname === "/portal-settings/security/sessions"; + } + setMainBarVisible = (visible) => { this.mainBarVisible = visible; }; @@ -819,6 +823,12 @@ class SettingsStore { return new SocketIOHelper(socketUrl, this.publicRoomKey); } + get onlineSessionsSocket() { + const socketUrl = this.isSessionsPage && this.socketUrl; + + return new SocketIOHelper(socketUrl, null); + } + getBuildVersionInfo = async () => { let versionInfo = null; if (window?.__ASC_INITIAL_EDITOR_STATE__?.versionInfo)