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

pull/12953/head jitsi-meet_8336
Mihaela Dumitru 2 years ago committed by GitHub
parent 877ef58dfb
commit f3117f3037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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, // Actions that temporarily clear the user preferred state of tile view,
// then re-set it when needed. // then re-set it when needed.
case PIN_PARTICIPANT: { case PIN_PARTICIPANT: {
const pinnedParticipant = getPinnedParticipant(store.getState()); const pinnedParticipant = action.participant?.id;
if (pinnedParticipant) { if (pinnedParticipant) {
_storeTileViewStateAndClear(store); _storeTileViewStateAndClear(store);

Loading…
Cancel
Save