Sticker Creator Window

This commit is contained in:
Fedor Indutny 2023-04-20 08:59:17 -07:00 committed by GitHub
parent 498b116794
commit d380817a44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
213 changed files with 34677 additions and 40 deletions

View file

@ -112,7 +112,7 @@ export class SettingsChannel extends EventEmitter {
this.installSetting('phoneNumberDiscoverabilitySetting');
this.installSetting('phoneNumberSharingSetting');
installPermissionsHandler({ session, userConfig });
installPermissionsHandler({ session: session.defaultSession, userConfig });
// These ones are different because its single source of truth is userConfig,
// not IndexedDB
@ -126,13 +126,19 @@ export class SettingsChannel extends EventEmitter {
userConfig.set('mediaPermissions', value);
// We reinstall permissions handler to ensure that a revoked permission takes effect
installPermissionsHandler({ session, userConfig });
installPermissionsHandler({
session: session.defaultSession,
userConfig,
});
});
ipc.handle('settings:set:mediaCameraPermissions', (_event, value) => {
userConfig.set('mediaCameraPermissions', value);
// We reinstall permissions handler to ensure that a revoked permission takes effect
installPermissionsHandler({ session, userConfig });
installPermissionsHandler({
session: session.defaultSession,
userConfig,
});
});
ipc.on('settings:response', (_event, seq, error, value) => {