Client: Shell: Added missing userId for socket subscribe

This commit is contained in:
Ilya Oleshko 2024-08-05 18:07:19 +03:00
parent ff9e0d3c0d
commit 61cd9c0d5d

View File

@ -165,7 +165,7 @@ const Shell = ({ items = [], page = "home", ...rest }) => {
socketHelper.emit({
command: "subscribe",
data: { roomParts: "66faa6e4-f133-11ea-b126-00ffeec8b4ef" },
data: { roomParts: userId },
});
socketHelper.on("s:logout-session", (loginEventId) => {
@ -177,7 +177,12 @@ const Shell = ({ items = [], page = "home", ...rest }) => {
);
}
});
}, [socketHelper, userLoginEventId, setPreparationPortalDialogVisible]);
}, [
socketHelper,
userLoginEventId,
setPreparationPortalDialogVisible,
userId,
]);
const { t, ready } = useTranslation(["Common"]); //TODO: if enable banner ["Common", "SmartBanner"]