Skip to content

Commit

Permalink
fix: limits for participant list
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Oct 3, 2023
1 parent 545cb91 commit a992908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const VirtualizedParticipantItem = React.memo(
);

export const PaginatedParticipants = ({ roleName, onBack }: { roleName: string; onBack: () => void }) => {
const { peers, total, loadPeers, loadMorePeers } = usePaginatedParticipants({ role: roleName, limit: 1 });
const { peers, total, loadPeers, loadMorePeers } = usePaginatedParticipants({ role: roleName, limit: 20 });
const [search, setSearch] = useState<string>('');
const filteredPeers = peers.filter(p => p.name?.toLowerCase().includes(search));
const isConnected = useHMSStore(selectIsConnectedToRoom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const RoleAccordion = ({
const [ref, { width }] = useMeasure<HTMLDivElement>();
const showAcordion = filter?.search ? peerList.some(peer => peer.name.toLowerCase().includes(filter.search)) : true;
const isLargeRoom = useHMSStore(selectIsLargeRoom);
const { peers, total, loadPeers } = usePaginatedParticipants({ role: roleName, limit: 2 });
const { peers, total, loadPeers } = usePaginatedParticipants({ role: roleName, limit: 10 });
const isOffStageRole = roleName && offStageRoles.includes(roleName);

useEffect(() => {
Expand Down

0 comments on commit a992908

Please sign in to comment.