diff --git a/react/features/video-layout/middleware.any.ts b/react/features/video-layout/middleware.any.ts index 29e7dd8d6c..3d40b9cbc6 100644 --- a/react/features/video-layout/middleware.any.ts +++ b/react/features/video-layout/middleware.any.ts @@ -45,7 +45,7 @@ MiddlewareRegistry.register(store => next => action => { // Actions that temporarily clear the user preferred state of tile view, // then re-set it when needed. case PIN_PARTICIPANT: { - const pinnedParticipant = getPinnedParticipant(store.getState()); + const pinnedParticipant = action.participant?.id; if (pinnedParticipant) { _storeTileViewStateAndClear(store);