Merge pull request #2173 from Bilb/fix-typo-calls

fix typo call missed toast
This commit is contained in:
Audric Ackermann 2022-03-03 13:48:10 +11:00 committed by GitHub
commit d4c61016e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -452,7 +452,7 @@
"noAudioOutputFound": "No audio output found", "noAudioOutputFound": "No audio output found",
"callMediaPermissionsTitle": "Voice and video calls", "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.", "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", "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.", "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", "menuCall": "Call",

View file

@ -1011,19 +1011,19 @@ function getThemeFromMainWindow() {
}); });
} }
function askForMediaAccess() { async function askForMediaAccess() {
// Microphone part // Microphone part
let status = systemPreferences.getMediaAccessStatus('microphone'); let status = systemPreferences.getMediaAccessStatus('microphone');
if (status !== 'granted') { if (status !== 'granted') {
systemPreferences.askForMediaAccess('microphone'); await systemPreferences.askForMediaAccess('microphone');
} }
// Camera part // Camera part
status = systemPreferences.getMediaAccessStatus('camera'); status = systemPreferences.getMediaAccessStatus('camera');
if (status !== 'granted') { if (status !== 'granted') {
systemPreferences.askForMediaAccess('camera'); await systemPreferences.askForMediaAccess('camera');
} }
} }
ipc.on('media-access', () => { ipc.on('media-access', async () => {
askForMediaAccess(); askForMediaAccess();
}); });