Add launch-on login option

See [#5244][0].

[0]: https://github.com/signalapp/Signal-Desktop/pull/5244
This commit is contained in:
Jacob Kiesel 2021-05-11 15:59:21 -05:00 committed by Evan Hahn
parent b41dab2704
commit 75d54e7737
10 changed files with 44 additions and 2 deletions

View file

@ -431,6 +431,9 @@ export async function startApp(): Promise<void> {
setAlwaysRelayCalls: (value: boolean) =>
window.storage.put('always-relay-calls', value),
getAutoLaunch: () => window.getAutoLaunch(),
setAutoLaunch: (value: boolean) => window.setAutoLaunch(value),
// eslint-disable-next-line eqeqeq
isPrimary: () => window.textsecure.storage.user.getDeviceId() == '1',
getSyncRequest: () =>

View file

@ -1225,6 +1225,14 @@
"updated": "2021-02-26T18:44:56.450Z",
"reasonDetail": "Static selector, read-only access"
},
{
"rule": "jQuery-$(",
"path": "js/views/settings_view.js",
"line": " el: this.$('.auto-launch-setting'),",
"reasonCategory": "usageTrusted",
"updated": "2021-05-11T20:38:03.542Z",
"reasonDetail": "Protected from arbitrary input"
},
{
"rule": "jQuery-append(",
"path": "js/views/settings_view.js",
@ -14233,4 +14241,4 @@
"updated": "2021-03-18T21:41:28.361Z",
"reasonDetail": "A generic hook. Typically not to be used with non-DOM values."
}
]
]

2
ts/window.d.ts vendored
View file

@ -133,6 +133,8 @@ declare global {
dataURLToBlobSync: any;
loadImage: any;
isBehindProxy: () => boolean;
getAutoLaunch: () => boolean;
setAutoLaunch: (value: boolean) => void;
PQueue: typeof PQueue;
PQueueType: PQueue;