feat: enhance session event handling by including userId for client-side filtering and updating SessionLiveWrapper with currentUserId
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user