feat: enhance session event handling by including userId for client-side filtering and updating SessionLiveWrapper with currentUserId

This commit is contained in:
Julien Froidefond
2025-11-27 14:38:05 +01:00
parent 15ea89f477
commit 639bb159fe
5 changed files with 21 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ interface Share {
interface SessionLiveWrapperProps {
sessionId: string;
sessionTitle: string;
currentUserId: string;
shares: Share[];
isOwner: boolean;
canEdit: boolean;
@@ -32,6 +33,7 @@ interface SessionLiveWrapperProps {
export function SessionLiveWrapper({
sessionId,
sessionTitle,
currentUserId,
shares,
isOwner,
canEdit,
@@ -51,6 +53,7 @@ export function SessionLiveWrapper({
const { isConnected, error } = useSessionLive({
sessionId,
currentUserId,
onEvent: handleEvent,
});