Skip to content

Conversation

@pblazej
Copy link
Contributor

@pblazej pblazej commented Dec 2, 2025

No description provided.

@pblazej pblazej requested a review from hiroshihorie December 2, 2025 12:40
Copy link
Member

@hiroshihorie hiroshihorie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think JS SDK emits both RemoteParticipant disconnected / connected events (by using the normal participant disconnect flow etc), maybe we should do that also ?

Comment on lines +138 to +140
func signalClient(_: SignalClient, didReceiveRoomMoved response: Livekit_RoomMovedResponse) async {
log("didReceiveRoomMoved to room: \(response.hasRoom ? response.room.name : "unknown")")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to update the room's token to Livekit_RoomMovedResponse.token.

Comment on lines +166 to +175
// Re-add participants
var participantsToAdd: [Livekit_ParticipantInfo] = []
if response.hasParticipant {
participantsToAdd.append(response.participant)
}
participantsToAdd.append(contentsOf: response.otherParticipants)

for info in participantsToAdd {
_state.mutate { $0.updateRemoteParticipant(info: info, room: self) }
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s not well documented, but response.participant appears to be a LocalParticipant. We should probably call localParticipant.updateInfo instead. (I’m not sure if any of the info actually changes, though.)

Comment on lines +143 to +148
_state.mutate {
$0.metadata = response.room.metadata
$0.isRecording = response.room.activeRecording
$0.numParticipants = Int(response.room.numParticipants)
$0.numPublishers = Int(response.room.numPublishers)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other fields like sid / name / maxParticipants / creationTime etc. could be missing ?

@pblazej
Copy link
Contributor Author

pblazej commented Dec 4, 2025

@hiroshihorie I don't think that's a hi-priority task tbh, any reliable ways to test it?

@hiroshihorie
Copy link
Member

@pblazej Yes, probably not super high priority. I was hoping Livekit_SimulateScenario as a case but it looks like it doesn't.

@pblazej
Copy link
Contributor Author

pblazej commented Dec 4, 2025

Let's try to prioritize #845 (more severe), then fix this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants