mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Calling support
This commit is contained in:
committed by
Scott Nonnenberg
parent
83574eb067
commit
d3a27a6442
10
ts/util/callingPermissions.ts
Normal file
10
ts/util/callingPermissions.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user