From 1242024cc72ff20699e50e77ac03de8868ecbe48 Mon Sep 17 00:00:00 2001 From: inference-bot Date: Mon, 12 Oct 2026 09:01:27 -0600 Subject: [PATCH] Matrix card: clear invite-confirmation UX when saving an external MXID --- app/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 9dfb631..cf83d50 100644 --- a/app/main.py +++ b/app/main.py @@ -413,6 +413,7 @@ PAGE_HTML = """ } .new-key input:focus { outline: none; border-color: var(--green-mid); } .hint { color: var(--muted); font-size: 12px; margin-top: 10px; } + .hint.ok { color: #2f5c30; } .key-reveal { margin-top: 16px; padding: 16px; background: #eaf3ea; border: 1px solid var(--green-mid); border-radius: 10px; @@ -664,7 +665,11 @@ async function saveMxid() { const d = await r.json(); if (d.error) { $('mxid-status').textContent = d.error; } else if (mxid) { - $('mxid-status').textContent = 'Saved — invitations will go to ' + mxid + '.'; + const joined = d.invite_sent === false; + $('mxid-status').innerHTML = 'Saved. An invite to the co-op Matrix space is on its way to ' + escapeHtml(mxid) + '' + + (joined ? ' — that account could not be reached right now; the nightly sync will retry automatically.' : + ' — accept it from that account to join. Your co-op account will no longer receive invites.'); + $('mxid-status').className = 'hint ok'; } else { $('mxid-status').textContent = 'Cleared — your co-op account will be used for Matrix.'; $('mxid-input').value = '';