feat(voice): add cachedUser carry-forward to ParticipantInfo

Extends ParticipantInfo with cachedUser: User | null. In updateParticipants,
snapshots the previous participant list and carries forward the cached User
object when spaceStore member lookup fails (user navigated to a different
space). Local user falls back to authStore. homeUserId is now derived from
cachedUser when the direct member lookup misses. Updates EMPTY_PARTICIPANT
in PictureInPicture.tsx.
This commit is contained in:
Jannis Braun
2026-03-24 19:01:34 +01:00
parent 52c93ae0c5
commit 8910de3053
2 changed files with 29 additions and 1 deletions
@@ -14,6 +14,7 @@ const EMPTY_PARTICIPANT: ParticipantInfo = {
isMuted: false, isDeafened: false, isCameraOn: false, isScreenSharing: false,
isLocal: false, audioTrack: null, videoTrack: null, screenTrack: null,
screenAudioTrack: null, lkVideoTrack: null, lkScreenTrack: null,
cachedUser: null,
};
const PIP_WIDTH = 320;