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 --- .../meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js') diff --git a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js index 8aba36d..b64d7f2 100644 --- a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js +++ b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js @@ -213,6 +213,13 @@ keepAlive: (on, text) => call('photosync:keep-alive', on === true, text || ''), }, + // Where every backup goes (§9.12): one folder of one group the account + // owns and is alone in. Each kind goes into `-` under it. + phoneSync: { + destination: () => call('phonesync:destination'), + setDestination: (d) => call('phonesync:set-destination', d || null), + }, + // Contacts backup (§9.13): the phone writes the address book into one // file, served at /phonesync/ on this origin, when it changed since // the last one sent. The page decides when and does the sending. -- cgit v1.2.3