Merge branch 'main' of github.com:standardnotes/app

This commit is contained in:
Aman Harwara
2022-12-29 12:31:59 +05:30
30 changed files with 136 additions and 16 deletions

View File

@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.130.2](https://github.com/standardnotes/app/compare/@standardnotes/web@3.130.0...@standardnotes/web@3.130.2) (2022-12-29)
### Bug Fixes
* Fixed issue where Moments could incorrectly get engaged during biometrics unlocking ([8e3ae80](https://github.com/standardnotes/app/commit/8e3ae80aa09c0c60e4f3ad08497fd656a1231465))
# [3.130.0](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.3...@standardnotes/web@3.130.0) (2022-12-28)
### Features
* Added "Files Table View" to Labs ([b764296](https://github.com/standardnotes/app/commit/b764296c8f831d06f854dcf2982e644c27e14e7c))
## [3.129.3](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.2...@standardnotes/web@3.129.3) (2022-12-28)
**Note:** Version bump only for package @standardnotes/web

View File

@@ -1,5 +1,33 @@
{
"versions": [
{
"version": "3.130.2",
"title": "[3.130.2](https://github.com/standardnotes/app/compare/@standardnotes/web@3.130.0...@standardnotes/web@3.130.2) (2022-12-29)",
"date": null,
"body": "### Bug Fixes\n\n* Fixed issue where Moments could incorrectly get engaged during biometrics unlocking ([8e3ae80](https://github.com/standardnotes/app/commit/8e3ae80aa09c0c60e4f3ad08497fd656a1231465))",
"parsed": {
"_": [
"Fixed issue where Moments could incorrectly get engaged during biometrics unlocking (8e3ae80)"
],
"Bug Fixes": [
"Fixed issue where Moments could incorrectly get engaged during biometrics unlocking (8e3ae80)"
]
}
},
{
"version": "3.130.0",
"title": "[3.130.0](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.3...@standardnotes/web@3.130.0) (2022-12-28)",
"date": null,
"body": "### Features\n\n* Added \"Files Table View\" to Labs ([b764296](https://github.com/standardnotes/app/commit/b764296c8f831d06f854dcf2982e644c27e14e7c))",
"parsed": {
"_": [
"Added \"Files Table View\" to Labs (b764296)"
],
"Features": [
"Added \"Files Table View\" to Labs (b764296)"
]
}
},
{
"version": "3.129.3",
"title": "[3.129.3](https://github.com/standardnotes/app/compare/@standardnotes/web@3.129.2...@standardnotes/web@3.129.3) (2022-12-28)",

View File

@@ -1,6 +1,6 @@
{
"name": "@standardnotes/web",
"version": "3.129.3",
"version": "3.130.2",
"license": "AGPL-3.0-or-later",
"main": "dist/app.js",
"author": "Standard Notes.",

View File

@@ -29,11 +29,13 @@ export class MomentsService extends AbstractViewController {
void this.beginTakingPhotos()
}
}, ApplicationEvent.LocalDataLoaded),
application.addEventObserver(async () => {
this.disableMoments()
this.pauseMoments()
}, ApplicationEvent.BiometricsSoftLockEngaged),
application.addEventObserver(async () => {
this.enableMoments()
this.resumeMoments()
}, ApplicationEvent.BiometricsSoftLockDisengaged),
)
@@ -67,6 +69,18 @@ export class MomentsService extends AbstractViewController {
clearInterval(this.intervalReference)
}
private pauseMoments(): void {
clearInterval(this.intervalReference)
}
private resumeMoments(): void {
if (!this.isEnabled) {
return
}
void this.beginTakingPhotos()
}
private beginTakingPhotos() {
if (this.intervalReference) {
clearInterval(this.intervalReference)