aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/app.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-10 16:29:20 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-10 16:29:20 +0200
commit7957fa686eb6e8cf57bcb62ff4e6d2785693030b (patch)
tree562195088fa40bc4db85193956bdd8aaf00e31f5 /packages/meshbay-hub/src/meshbay_hub/static/app.js
parent24547e4efd3a45b36b3bea8c29cfc687230a6d3a (diff)
downloadmeshbay-7957fa686eb6e8cf57bcb62ff4e6d2785693030b.tar.gz
feat(android): back up WhatsApp's own chat backups, and its media if asked
A WhatsApp section takes WhatsApp's folder through the picker, sends its encrypted Databases and Backups (not the dated copies of earlier weeks) into <folder>/<account>-whatsapp, and names the restore set in the manifest. 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.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js
index d8818d0..579d1dd 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js
@@ -948,9 +948,11 @@ function App() {
return () => { gone = true; if (stop) stop(); };
}, [syncAccount]);
- // Files backup (§9.13), the same way.
+ // Files and WhatsApp backups (§9.13), the same way.
useEffect(() => {
- if (!syncAccount || !platform.driveSync.available) return undefined;
+ if (!syncAccount || !(platform.driveSync.available || platform.whatsappSync.available)) {
+ return undefined;
+ }
let stop = null;
let gone = false;
import('./drive-sync.js').then((m) => {