Fix camera setting when stopping screenshare

This commit is contained in:
Josh Perez 2021-06-02 14:41:28 -04:00 committed by GitHub
parent 36617c2e5a
commit 38d4595e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -945,7 +945,7 @@ export class CallingClass {
} else {
this.setOutgoingVideo(
conversationId,
Boolean(this.hadLocalVideoBeforePresenting) || hasLocalVideo
this.hadLocalVideoBeforePresenting ?? hasLocalVideo
);
this.hadLocalVideoBeforePresenting = undefined;
}