// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only export async function requestCameraPermissions(): Promise { if (!(await window.IPC.getMediaCameraPermissions())) { await window.IPC.showPermissionsPopup(true, true); // Check the setting again (from the source of truth). return window.IPC.getMediaCameraPermissions(); } return true; }