Skip to content

useSession ignores PreJoin's settings #1320

@KazimirPodolski

Description

@KazimirPodolski

Describe the bug

It looks like useSession miss usage of usePersistentUserChoices and so if a call is set up with PreJoin, the actual settings in the room are reset to some defaults.

Reproduction

const Call = () => {
  const session = useSession(...);

  const showPreJoin = true;
  // ... joining logic ...

  return (
    {showPreJoin && <PreJoin/>}
    {!showPreJoin && (
      <SessionProvider session={session}>
        <VideoConference />
      </SessionProvider>
    )}
  );
}

Logs

System Info

Ubuntu 24.04, Chrome 145.

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions