From aed32f20625a6206628b577d743d96552f81e91a Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 10 Oct 2026 14:40:05 +0200 Subject: 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 XML, into /-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 --- packages/meshbay-hub/src/meshbay_hub/static/app.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js') 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]); -- cgit v1.2.3