mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Merge pull request #2173 from Bilb/fix-typo-calls
fix typo call missed toast
This commit is contained in:
commit
d4c61016e6
2 changed files with 5 additions and 5 deletions
|
@ -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",
|
||||||
|
|
8
main.js
8
main.js
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue