Merge branch 'main' into matroska

This commit is contained in:
Robin Townsend
2022-07-28 16:27:04 -04:00
15 changed files with 352 additions and 61 deletions

View File

@@ -302,9 +302,11 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallType {
const toggleScreensharing = useCallback(() => {
updateState({ requestingScreenshare: true });
groupCall.setScreensharingEnabled(!groupCall.isScreensharing()).then(() => {
updateState({ requestingScreenshare: false });
});
groupCall
.setScreensharingEnabled(!groupCall.isScreensharing(), { audio: true })
.then(() => {
updateState({ requestingScreenshare: false });
});
}, [groupCall]);
useEffect(() => {