if participant leave, delegate participantDidDisconnect participant.identity is null
Describe the bug
If someone leaves and triggers participantDidConnect, then we cannot get identity in RemoteParticipant
SDK Version The latest version
iOS/macOS Version ALL
temporary solution
Participant.swift
func cleanUp(notify _notify: Bool = true) async {
await unpublishAll(notify: _notify)
// Reset state
_state.mutate { $0 = State(sid: $0.sid, identity: $0.identity, name: $0.name) }
//_state.mutate { $0 = State(sid: "", identity: "", name: "") }
}
Thanks for the report will fix this
I think the problem arises again, after participantDidDisconnect is called, identity is null.
I can confirm this as well
This PR https://github.com/livekit/client-sdk-swift/pull/361 should fix it.
I have same issue. When the fix will be available?
@hiroshihorie Can we get this one fixed?
Hello this is fixed in https://github.com/livekit/client-sdk-swift/pull/408 Will be in next release
This should be fixed now