summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-client
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-01 15:52:08 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-01 15:52:08 +0200
commitfcac9dcb6ba0ad346a754c7b9e7c59d38b64a4e8 (patch)
tree7c8c3d419346c01c44b722ec8a8456817e88502b /packages/meshbay-client
parenta64fe23de95f1495a831a1595b398fdd6149097e (diff)
downloadmeshbay-fcac9dcb6ba0ad346a754c7b9e7c59d38b64a4e8.tar.gz
fix(client): rotating a group key asks nothing
Rotation narrows rather than widens: members still connected receive the new key, and nothing already shared changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-client')
-rw-r--r--packages/meshbay-client/src/main.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/meshbay-client/src/main.js b/packages/meshbay-client/src/main.js
index dba40b4..c1ff540 100644
--- a/packages/meshbay-client/src/main.js
+++ b/packages/meshbay-client/src/main.js
@@ -2222,16 +2222,7 @@ function registerBridge() {
ejectRoot: (a) => ['PUT', `${root(a)}/eject`],
plugRoot: (a) => ['PUT', `${root(a)}/plug`],
removeRoot: (a) => ['DELETE', root(a)],
- // Creating a missing key replaces nothing -- the node keeps an existing one
- // -- so only a rotation is asked about.
- initGek: async (a) => {
- const target = group(a);
- if (a.rotate) {
- await confirmOrRefuse('node.gek_rotate_confirm');
- return ['POST', `${target}/gek?rotate=true`];
- }
- return ['POST', `${target}/gek`];
- },
+ initGek: (a) => ['POST', `${group(a)}/gek${a.rotate ? '?rotate=true' : ''}`],
pairOperator: () => ['POST', '/api/operator/pair'],
roster: (a) => ['GET', a.groupId
? `/api/roster?group_id=${anId(a.groupId, 'the group')}` : '/api/roster'],