1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Log error when failing to list usermedia devices

So we can debug why this might be failing
This commit is contained in:
David Baker
2021-03-18 16:41:22 +00:00
parent 9ac5f4d2ee
commit 84b6027d41

View File

@@ -84,6 +84,7 @@ export default class VoiceUserSettingsTab extends React.Component {
}
}
if (error) {
console.log("Failed to list userMedia devices", error);
const brand = SdkConfig.get().brand;
const ErrorDialog = sdk.getComponent('dialogs.ErrorDialog');
Modal.createTrackedDialog('No media permissions', '', ErrorDialog, {