Fix microphone permission checking for audio recording
See [#5580][0]. [0]: https://github.com/signalapp/Signal-Desktop/pull/5580
This commit is contained in:
parent
1dc353f089
commit
79b3b6408e
8 changed files with 69 additions and 43 deletions
11
app/main.ts
11
app/main.ts
|
@ -1862,8 +1862,15 @@ ipc.on(
|
|||
|
||||
// Permissions Popup-related IPC calls
|
||||
|
||||
ipc.on('show-permissions-popup', () => {
|
||||
showPermissionsPopupWindow(false, false);
|
||||
ipc.handle('show-permissions-popup', async () => {
|
||||
try {
|
||||
await showPermissionsPopupWindow(false, false);
|
||||
} catch (error) {
|
||||
getLogger().error(
|
||||
'show-permissions-popup error:',
|
||||
error && error.stack ? error.stack : error
|
||||
);
|
||||
}
|
||||
});
|
||||
ipc.handle(
|
||||
'show-calling-permissions-popup',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue