aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/invite-page.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-25 17:10:15 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-25 17:10:15 +0200
commit90c69477d5f701158112b3c294eff26312f89da6 (patch)
tree2691ca096da5cf93482bc750c7a03599fbc44dc8 /packages/meshbay-hub/src/meshbay_hub/static/invite-page.js
parent8bb94a39609f57be2c486f579849eebb04606808 (diff)
downloadmeshbay-main.tar.gz
feat: invitation links no longer bound to an e-mail addressHEADmain
A link is redeemable by whoever opens it first, so it can be sent by any messaging app. The address is optional (mail + label only); a link lives 7 days, fixed. Adds a Share button; see MESHBAY_DESIGN.md §3.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/invite-page.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/invite-page.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/invite-page.js b/packages/meshbay-hub/src/meshbay_hub/static/invite-page.js
index dd678aa..41b4c4c 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/invite-page.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/invite-page.js
@@ -25,10 +25,7 @@ export function InvitePage({ user, onJoined }) {
const [error, setError] = useState('');
const refused = useCallback((err) => {
- if (err.message === 'invite_other_account') {
- // Kept: signing out and in again as the right account is the fix.
- setPhase('other');
- } else if (err.message === 'invite_not_valid') {
+ if (err.message === 'invite_not_valid') {
clearPending();
setPhase('invalid');
} else {
@@ -97,12 +94,6 @@ export function InvitePage({ user, onJoined }) {
<button class="btn btn-primary" onClick=${join}>${t('invite.join')}</button>
<button class="btn btn-secondary" onClick=${ignore}>${t('invite.ignore')}</button>
</div>`;
- } else if (phase === 'other') {
- body = html`
- <p class="error-msg">${t('invite.other_account')}</p>
- <div style="margin-top:16px">
- <button class="btn btn-secondary" onClick=${ignore}>${t('invite.ignore')}</button>
- </div>`;
} else if (phase === 'invalid') {
body = html`<p class="error-msg">${t('invite.invalid')}</p>`;
} else {