Skip to content

Commit

Permalink
fix: pin over spotlight
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Aug 11, 2023
1 parent 9a0b74f commit 0507250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/100ms-web/src/components/AppData/useUISettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const usePinnedTrack = () => {
)?.id;
return useHMSStore(
selectTrackByID(
spotlightVideoTrackId || spotlightAudioTrackId || pinnedTrackId
pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId
)
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const usePinnedTrack = () => {
const spotlightPeerId = useHMSStore(selectSessionStore(SESSION_STORE_KEY.SPOTLIGHT));
const spotlightVideoTrackId = useHMSStore(selectVideoTrackByPeerID(spotlightPeerId))?.id;
const spotlightAudioTrackId = useHMSStore(selectAudioTrackByPeerID(spotlightPeerId))?.id;
return useHMSStore(selectTrackByID(spotlightVideoTrackId || spotlightAudioTrackId || pinnedTrackId));
return useHMSStore(selectTrackByID(pinnedTrackId || spotlightVideoTrackId || spotlightAudioTrackId));
};

export const useSubscribedNotifications = notificationKey => {
Expand Down

0 comments on commit 0507250

Please sign in to comment.