Skip to content

Commit

Permalink
Revert "fix: sort active speaker only on first page"
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Dec 18, 2023
1 parent 096d50e commit d14a901
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,13 @@ export const GridLayout = ({

useEffect(() => {
if (mainPage !== 0) {
peersSorter.stop();
return;
}
peersSorter.setPeersAndTilesPerPage({
peers: updatedPeers,
tilesPerPage: pageSize,
});
peersSorter.onUpdate(setSortedPeers);
return () => {
peersSorter.stop();
};
}, [mainPage, peersSorter, updatedPeers, pageSize]);

if (peerSharing) {
Expand Down

0 comments on commit d14a901

Please sign in to comment.