Add error popup if screen sharing fails

pull/21833/head
David Baker 2017-01-11 10:06:48 +00:00
parent a16aae1124
commit 37d9108ceb
1 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,11 @@ function _onAction(payload) {
if (screenCapErrorString) { if (screenCapErrorString) {
_setCallState(undefined, newCall.roomId, "ended"); _setCallState(undefined, newCall.roomId, "ended");
console.log("Can't capture screen: " + screenCapErrorString); console.log("Can't capture screen: " + screenCapErrorString);
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createDialog(ErrorDialog, {
title: "Unable to capture screen",
description: screenCapErrorString
});
return; return;
} }
newCall.placeScreenSharingCall( newCall.placeScreenSharingCall(