From af595eb539451aa63bb43c1b65bc94d2e13a7ddf Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 15 Feb 2022 11:23:54 +1100 Subject: [PATCH] fix typo call toast send message to him => send message to them --- _locales/en/messages.json | 2 +- main.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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(); });