Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(video-layout) get pinned participant from payload to determine pinning behavior (#12951)

Mihaela Dumitruf3117f3037e3
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);