added online session socket

This commit is contained in:
Elyor Djalilov 2024-01-22 15:44:50 +05:00
parent f2c09d122c
commit f234963109

View File

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