Merge pull request #914 from vrtmrz/fix_ios_resume

fix: Fix an issue about resuming from background on iOS (#888).
This commit is contained in:
vorotamoroz
2026-05-19 19:34:49 +09:00
committed by GitHub
3 changed files with 15 additions and 3 deletions
+1 -1
Submodule src/lib updated: a0af792b48...36b99354f6
@@ -121,7 +121,7 @@ export class ModuleObsidianEvents extends AbstractObsidianModule {
return;
}
const isHidden = document.hidden;
const isHidden = activeWindow.document.hidden;
if (this.isLastHidden === isHidden) {
return;
}
@@ -134,7 +134,7 @@ export class ModuleObsidianEvents extends AbstractObsidianModule {
} else {
// suspend all temporary.
if (this.services.appLifecycle.isSuspended()) return;
if (!this.hasFocus) return;
// Do not block resume by focus state here; visibility recovery should be enough.
await this.services.appLifecycle.onResuming();
await this.services.appLifecycle.onResumed();
}
+12
View File
@@ -3,6 +3,18 @@ Since 19th July, 2025 (beta1 in 0.25.0-beta1, 13th July, 2025)
The head note of 0.25 is now in [updates_old.md](https://github.com/vrtmrz/obsidian-livesync/blob/main/updates_old.md). Because 0.25 got a lot of updates, thankfully, compatibility is kept and we do not need breaking changes! In other words, when get enough stabled. The next version will be v1.0.0. Even though it my hope.
## Unreleased
18th May, 2026
### Improved
- Improved the error verbosity on concurrent processing during the start-up process.
### Fixed
- Fix an issue about resuming from background on iOS (#888).
## 0.25.64
17th May, 2026