From 2f2a9a6542d2194e50ffba6f382e4fdffd481838 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 10 Oct 2026 14:21:46 +0200 Subject: feat(android): one backup destination, a group the account owns alone Chosen once at the top of Android Sync for every kind; photos and contacts go into /-photos and -contacts. Owner and sole member are checked at set-up and before every run. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/src/meshbay_hub/static/platform.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/platform.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/platform.js b/packages/meshbay-hub/src/meshbay_hub/static/platform.js index 1715d5f..148b2eb 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/platform.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/platform.js @@ -256,9 +256,20 @@ export const photoSync = { }; /** - * Backing up one kind of this phone's data (the contacts) to a group of - * which the person is the only member (docs/MESHBAY_DESIGN.md §9.13). Android - * only, like `photoSync`. See phone-sync.js. + * Where every backup of this phone goes: one folder of a group the account + * owns and is alone in (docs/MESHBAY_DESIGN.md §9.12). Android only, like + * `photoSync`. See sync-destination.js. + */ +export const phoneSync = { + available: Boolean(bridge && bridge.phoneSync), + destination() { return bridge.phoneSync.destination(); }, + setDestination(d) { return bridge.phoneSync.setDestination(d); }, +}; + +/** + * Backing up one kind of this phone's data (the contacts) to the destination + * every kind shares (docs/MESHBAY_DESIGN.md §9.13). Android only, like + * `photoSync`. See phone-sync.js. */ function docSync(name) { const b = bridge && bridge[name]; -- cgit v1.2.3