Sticker Creator Window
This commit is contained in:
parent
498b116794
commit
d380817a44
213 changed files with 34677 additions and 40 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue