|
@@ -284,11 +284,13 @@ StateListenerRegistry.register(
|
284
|
284
|
}
|
285
|
285
|
});
|
286
|
286
|
} else {
|
287
|
|
- const localParticipantId = getLocalParticipant(store.getState).id;
|
|
287
|
+ const localParticipantId = getLocalParticipant(store.getState)?.id;
|
288
|
288
|
|
289
|
|
- // We left the conference, the local participant must be updated.
|
290
|
|
- _e2eeUpdated(store, conference, localParticipantId, false);
|
291
|
|
- _raiseHandUpdated(store, conference, localParticipantId, false);
|
|
289
|
+ if (localParticipantId) {
|
|
290
|
+ // We left the conference, the local participant must be updated.
|
|
291
|
+ _e2eeUpdated(store, conference, localParticipantId, false);
|
|
292
|
+ _raiseHandUpdated(store, conference, localParticipantId, false);
|
|
293
|
+ }
|
292
|
294
|
}
|
293
|
295
|
}
|
294
|
296
|
);
|