spell out that conference calling is hit and miss

This commit is contained in:
Matthew Hodgson 2016-08-03 19:56:04 +01:00
parent cbfb0ad998
commit 6632322029

View file

@ -250,12 +250,24 @@ function _onAction(payload) {
}); });
} }
else { else {
ConferenceHandler.createNewMatrixCall( var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
MatrixClientPeg.get(), payload.room_id Modal.createDialog(QuestionDialog, {
).done(function(call) { title: "Warning!",
placeCall(call); description: "Conference calling in Vector is in development and may not be reliable.",
}, function(err) { onFinished: confirm=>{
console.error("Failed to setup conference call: %s", err); if (confirm) {
ConferenceHandler.createNewMatrixCall(
MatrixClientPeg.get(), payload.room_id
).done(function(call) {
placeCall(call);
}, function(err) {
Modal.createDialog(ErrorDialog, {
title: "Failed to set up conference call",
description: "Conference call failed: " + err,
});
});
}
},
}); });
} }
break; break;