From cd85808c13926c89a97987d320ac26391eae3267 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Wed, 23 Sep 2026 17:01:07 +0200 Subject: feat(hub): make mailing an invitation a remembered choice A "Send the invitation by e-mail" box under the Invite member field, checked by default and stored as the invite_email preference. Unchecked, invite-notify is never called and the hub never sees the code. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/src/meshbay_hub/api/users.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/meshbay-hub/src/meshbay_hub/api/users.py') diff --git a/packages/meshbay-hub/src/meshbay_hub/api/users.py b/packages/meshbay-hub/src/meshbay_hub/api/users.py index 2666e86..9b9a189 100644 --- a/packages/meshbay-hub/src/meshbay_hub/api/users.py +++ b/packages/meshbay-hub/src/meshbay_hub/api/users.py @@ -1208,6 +1208,9 @@ ALLOWED_PREF_KEYS = frozenset([ "default_tab", "music_keep_screen_on", "media_page_size", + # Whether the Members tab asks the hub to mail an invitation. Remembered + # because unticking it on every invitation is what nobody would keep doing. + "invite_email", ]) # `default_tab:`, which is what the SPA writes (group-page.js). The -- cgit v1.2.3