diff --git a/_locales/en/messages.json b/_locales/en/messages.json index d9ee7c355..df12c70e5 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -455,7 +455,7 @@ "noAudioOutputFound": "No audio output found", "callMediaPermissionsTitle": "Voice and video calls", "callMissedCausePermission": "Call missed from '$name$' because you need to enable the 'Voice and video calls' permission in the Privacy Settings.", - "callMissedNotApproved": "Call missed from '$name$' as you haven't approved this conversation yet. Send a message to him first.", + "callMissedNotApproved": "Call missed from '$name$' as you haven't approved this conversation yet. Send a message to them first.", "callMediaPermissionsDescription": "Allows access to accept voice and video calls from other users", "callMediaPermissionsDialogContent": "The current implementation of voice/video calls will expose your IP address to the Oxen Foundation servers and the calling/called user.", "menuCall": "Call", diff --git a/main.js b/main.js index 6bb540edf..4cef7d965 100644 --- a/main.js +++ b/main.js @@ -1011,19 +1011,19 @@ function getThemeFromMainWindow() { }); } -function askForMediaAccess() { +async function askForMediaAccess() { // Microphone part let status = systemPreferences.getMediaAccessStatus('microphone'); if (status !== 'granted') { - systemPreferences.askForMediaAccess('microphone'); + await systemPreferences.askForMediaAccess('microphone'); } // Camera part status = systemPreferences.getMediaAccessStatus('camera'); if (status !== 'granted') { - systemPreferences.askForMediaAccess('camera'); + await systemPreferences.askForMediaAccess('camera'); } } -ipc.on('media-access', () => { +ipc.on('media-access', async () => { askForMediaAccess(); });