You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
Add error popup if screen sharing fails
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user