diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-10 14:40:05 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-10 14:40:05 +0200 |
| commit | aed32f20625a6206628b577d743d96552f81e91a (patch) | |
| tree | af2eaf3336804f2e4af37445326e52a19b2af169 /packages/meshbay-hub/src/meshbay_hub/static/app.js | |
| parent | 2f2a9a6542d2194e50ffba6f382e4fdffd481838 (diff) | |
| download | meshbay-aed32f20625a6206628b577d743d96552f81e91a.tar.gz | |
feat(android): back text messages up, in a build Play does not get
A Messages section sends the SMS added since the last copy, as restorable
<smses> XML, into <folder>/<account>-messages/YYYY. A play flavor has neither
READ_SMS nor the code that reads messages; full is the default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/app.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js index 12b48a7..41cc5f2 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js @@ -944,9 +944,11 @@ function App() { return () => { gone = true; if (stop) stop(); }; }, [syncAccount]); - // Contacts backup (§9.13), the same way. + // Contacts and messages backup (§9.13), the same way. useEffect(() => { - if (!syncAccount || !platform.contactSync.available) return undefined; + if (!syncAccount || !(platform.contactSync.available || platform.messageSync.available)) { + return undefined; + } let stop = null; let gone = false; import('./phone-sync.js').then((m) => { @@ -962,7 +964,7 @@ function App() { }, }); stop = m.stopPhoneSync; - }).catch((e) => console.warn('[MeshBay] contacts backup did not load:', e.message)); + }).catch((e) => console.warn('[MeshBay] contacts and messages backup did not load:', e.message)); return () => { gone = true; if (stop) stop(); }; }, [syncAccount]); |