diff options
author | 2021-10-16 10:26:13 +0200 | |
---|---|---|
committer | 2021-10-16 13:56:13 +0530 | |
commit | 09c2482eda07cdc4d2f03622f18de069848264ec (patch) | |
tree | a7481bd73527fc55d6f954dd4dfd76d61c0720c6 /src/stores/ServicesStore.js | |
parent | 5.6.3-nightly.35 [skip ci] (diff) | |
download | ferdium-app-09c2482eda07cdc4d2f03622f18de069848264ec.tar.gz ferdium-app-09c2482eda07cdc4d2f03622f18de069848264ec.tar.zst ferdium-app-09c2482eda07cdc4d2f03622f18de069848264ec.zip |
feat: add new preference to allow per-service wake-up (#2085)
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 5ed9e3534..c6baa4358 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -224,6 +224,7 @@ export default class ServicesStore extends Store { | |||
224 | } | 224 | } |
225 | 225 | ||
226 | if ( | 226 | if ( |
227 | service.isWakeUpEnabled && | ||
227 | service.lastHibernated && | 228 | service.lastHibernated && |
228 | Number(this.stores.settings.all.app.wakeUpStrategy) > 0 && | 229 | Number(this.stores.settings.all.app.wakeUpStrategy) > 0 && |
229 | Date.now() - service.lastHibernated > | 230 | Date.now() - service.lastHibernated > |
@@ -399,6 +400,7 @@ export default class ServicesStore extends Store { | |||
399 | serviceData = { | 400 | serviceData = { |
400 | isEnabled: true, | 401 | isEnabled: true, |
401 | isHibernationEnabled: false, | 402 | isHibernationEnabled: false, |
403 | isWakeUpEnabled: true, | ||
402 | isNotificationEnabled: true, | 404 | isNotificationEnabled: true, |
403 | isBadgeEnabled: true, | 405 | isBadgeEnabled: true, |
404 | isMuted: false, | 406 | isMuted: false, |