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

This commit is contained in:
Mihaela Dumitru 2023-02-23 14:41:29 +02:00 committed by GitHub
parent 877ef58dfb
commit f3117f3037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);