aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/transport.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/transport.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/transport.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index 0306a5c..d904286 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -383,6 +383,7 @@ class MeshBayTransport {
err.reason = reason;
throw err;
}
+ this.memberRole = 'operator';
return resp;
}
@@ -588,6 +589,10 @@ class MeshBayTransport {
const myPkX = Uint8Array.from(atob(pkXB64), c => c.charCodeAt(0));
const gekRaw = await C.unwrapGEK(resp, skXRaw, myPkX);
this._gekRaw = gekRaw;
+ // What the node's roster says this identity is, which is not what the hub
+ // says: `operator` here means this browser's key was paired with the node,
+ // not merely that the account owns it.
+ this.memberRole = resp.role || '';
return gekRaw;
}