File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -668,6 +668,14 @@ class Room extends DisposableChangeNotifier with EventsEmittable<RoomEvent> {
668
668
// trigger change notifier only if list of participants membership is changed
669
669
var hasChanged = false ;
670
670
for (final info in updates) {
671
+ // The local participant is not ready yet, waiting for the
672
+ // `RoomConnectedEvent` to create the local participant.
673
+ if (_localParticipant == null ) {
674
+ await events.waitFor <RoomConnectedEvent >(
675
+ duration: const Duration (seconds: 10 ),
676
+ );
677
+ }
678
+
671
679
if (localParticipant? .identity == info.identity) {
672
680
await localParticipant? .updateFromInfo (info);
673
681
continue ;
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ abstract class Participant<T extends TrackPublication>
200
200
201
201
@internal
202
202
Future <bool > updateFromInfo (lk_models.ParticipantInfo info) async {
203
+ logger.fine ('LocalParticipant.updateFromInfo(info: $info )' );
203
204
if (_participantInfo != null &&
204
205
_participantInfo! .sid == info.sid &&
205
206
_participantInfo! .version > info.version) {
You can’t perform that action at this time.
0 commit comments