1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Make selectDesktopCapturerSource optional

This commit is contained in:
Šimon Brandner
2021-04-08 11:01:17 +02:00
committed by GitHub
parent ae69af7e70
commit 2916a73f4c

View File

@@ -362,7 +362,7 @@ export class MatrixCall extends EventEmitter {
* only works in Google Chrome and Firefox >= 44.</b>
* @throws If you have not specified a listener for 'error' events.
*/
async placeScreenSharingCall(selectDesktopCapturerSource: () => Promise<DesktopCapturerSource>) {
async placeScreenSharingCall(selectDesktopCapturerSource?: () => Promise<DesktopCapturerSource>) {
logger.debug("placeScreenSharingCall");
this.checkForErrorListener();
try {