feat: enhance session event handling by including userId for client-side filtering and updating SessionLiveWrapper with currentUserId
This commit is contained in:
@@ -66,6 +66,7 @@ export async function GET(
|
||||
`data: ${JSON.stringify({
|
||||
type: event.type,
|
||||
payload: JSON.parse(event.payload),
|
||||
userId: event.userId, // Include userId for client-side filtering
|
||||
user: event.user,
|
||||
timestamp: event.createdAt,
|
||||
})}\n\n`
|
||||
|
||||
@@ -66,6 +66,7 @@ export default async function SessionPage({ params }: SessionPageProps) {
|
||||
<SessionLiveWrapper
|
||||
sessionId={session.id}
|
||||
sessionTitle={session.title}
|
||||
currentUserId={authSession.user.id}
|
||||
shares={session.shares}
|
||||
isOwner={session.isOwner}
|
||||
canEdit={session.canEdit}
|
||||
|
||||
Reference in New Issue
Block a user