From 2b526557e466b73af974509738e2a5737e3c03cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 6 May 2020 15:11:54 +0200 Subject: [PATCH] participants: fix accessing the local participant ID getLocalParticipant returns a participant object stored in Redux, not a JitsiParticipant object. --- react/features/base/participants/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.js index 9886b6219..363504708 100644 --- a/react/features/base/participants/middleware.js +++ b/react/features/base/participants/middleware.js @@ -231,7 +231,7 @@ StateListenerRegistry.register( }); } else { - const localParticipantId = getLocalParticipant(store.getState).getId(); + const localParticipantId = getLocalParticipant(store.getState).id; // We left the conference, the local participant must be updated. _e2eeUpdated(store, conference, localParticipantId, false);