aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js b/packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js
index 998a3b2..9ee8b2b 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/phone-sync-settings.js
@@ -1,4 +1,4 @@
-// The contacts, calendar and messages sections of the Android Sync page, on
+// The contacts and calendar sections of the Android Sync page, on
// the Android application only (docs/MESHBAY_DESIGN.md §9.13). Loaded on
// demand: no other client has it. Where the copies go is the page's destination section; these
// only turn each backup on or off.
@@ -17,13 +17,6 @@ const TEXT = {
intro: 'calendarsync.intro',
permission: 'calendarsync.permission_needed',
},
- messages: {
- intro: 'messagesync.intro',
- permission: 'messagesync.permission_needed',
- // Android keeps text messages behind "restricted settings" for an
- // application installed outside a store: said, with the way to lift it.
- restricted: 'messagesync.restricted_hint',
- },
};
function stateLine(st, status) {
@@ -87,12 +80,7 @@ export function DocSyncSection({ kind, destination }) {
<p class="settings-hint">${t(TEXT[kind].intro)}</p>
${!destination && html`<p class="settings-hint">${t('androidsync.dest_needed')}</p>`}
${destination && status.permission !== 'granted' && html`
- <p class="settings-hint">${t(TEXT[kind].permission)}</p>
- ${TEXT[kind].restricted && html`
- <p class="settings-hint">${t(TEXT[kind].restricted)}</p>
- <button class="btn-secondary" style="margin-bottom:8px"
- onClick=${() => sync.openSettings().catch((e) => setError(e.message))}>
- ${t('phonesync.open_settings')}</button>`}`}
+ <p class="settings-hint">${t(TEXT[kind].permission)}</p>`}
${destination && html`
<button class="admin-btn" disabled=${busy} onClick=${turnOn}>${t('phonesync.turn_on')}</button>`}
`}