Skip to content

Commit

Permalink
Update publish-alpha (#2883)
Browse files Browse the repository at this point in the history
* fix: role change UI (#2877)

* fix: design parity

* fix: border

* fix: handle role change for single role scenario (#2880)

* fix: hide internal recorder role (#2882)

---------

Co-authored-by: Kaustubh Kumar <[email protected]>
  • Loading branch information
github-actions[bot] and KaustubhKumar05 authored May 7, 2024
1 parent 23975a2 commit ab48ba4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const RoleChangeContent = ({
onOpenChange: (open: boolean) => void;
isMobile?: boolean;
}) => {
const roles = useHMSStore(selectAvailableRoleNames).filter(role => role !== peer?.roleName);
const roles = useHMSStore(selectAvailableRoleNames).filter(
role => role !== peer?.roleName || role !== '__internal_recorder',
);
const [selectedRole, setRole] = useState(roles.filter(role => role !== peer?.roleName)?.[0] || peer?.roleName);
const hmsActions = useHMSActions();
const [open, setOpen] = useState(false);
Expand Down

0 comments on commit ab48ba4

Please sign in to comment.