diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-10 14:21:46 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-10 14:21:46 +0200 |
| commit | 2f2a9a6542d2194e50ffba6f382e4fdffd481838 (patch) | |
| tree | 5437330f9e8b963f8af0904f3c5d80d1afc6dc3b /packages/meshbay-hub/src/meshbay_hub/static/platform.js | |
| parent | 914d2f0af848fb80d70d517901f44420a4e47764 (diff) | |
| download | meshbay-2f2a9a6542d2194e50ffba6f382e4fdffd481838.tar.gz | |
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 <folder>/<account>-photos and -contacts. Owner and sole member are
checked at set-up and before every run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/platform.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/platform.js | 17 |
1 files changed, 14 insertions, 3 deletions
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]; |