mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-22 03:09:25 +00:00
11 lines
303 B
TypeScript
11 lines
303 B
TypeScript
export async function requestCameraPermissions(): Promise<boolean> {
|
|
if (!(await window.getMediaCameraPermissions())) {
|
|
await window.showCallingPermissionsPopup(true);
|
|
|
|
// Check the setting again (from the source of truth).
|
|
return window.getMediaCameraPermissions();
|
|
}
|
|
|
|
return true;
|
|
}
|