From 37d9108ceb69f595f08921f407ce35fcd1078bc9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 11 Jan 2017 10:06:48 +0000 Subject: [PATCH] Add error popup if screen sharing fails --- src/CallHandler.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CallHandler.js b/src/CallHandler.js index 4442219686..31b52b65a3 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -192,6 +192,11 @@ function _onAction(payload) { if (screenCapErrorString) { _setCallState(undefined, newCall.roomId, "ended"); console.log("Can't capture screen: " + screenCapErrorString); + const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); + Modal.createDialog(ErrorDialog, { + title: "Unable to capture screen", + description: screenCapErrorString + }); return; } newCall.placeScreenSharingCall(