Web: sync naming with backend

This commit is contained in:
Aleksandr Lushkin 2023-12-25 11:08:57 +01:00
parent 54f9b00e9d
commit b5dff9967e
3 changed files with 5 additions and 5 deletions

View File

@ -221,7 +221,7 @@ const Members = ({
if (isRoom && !isArchive) {
onlineUsersSocket.emit({
command: "subscribe",
data: { roomParts: `${id}` },
data: { roomPart: `${id}` },
});
console.log("open members for room " + id);
}
@ -230,7 +230,7 @@ const Members = ({
if (isRoom && !isArchive) {
onlineUsersSocket.emit({
command: "unsubscribe",
data: { roomParts: `${id}` },
data: { roomPart: `${id}` },
});
console.log("close members for room " + id);
}

View File

@ -215,7 +215,7 @@ class SelectedFolderStore {
onlineUsersSocket.emit({
command: "enter",
data: {
roomParts: `${roomId}`,
roomPart: `${roomId}`,
},
});
console.log(`enter room: ${roomId}`);
@ -226,7 +226,7 @@ class SelectedFolderStore {
onlineUsersSocket.emit({
command: "leave",
data: {
roomParts: `${roomId}`,
roomPart: `${roomId}`,
},
});
console.log(`leave room: ${roomId}`);

View File

@ -828,7 +828,7 @@ class SettingsStore {
const socketUrl =
this.isPublicRoom && !this.publicRoomKey ? null : this.socketUrl;
return new SocketIOHelper(socketUrl, this.publicRoomKey, "/onlineUsers");
return new SocketIOHelper(socketUrl, this.publicRoomKey, "/onlineusers");
}
getBuildVersionInfo = async () => {