diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/transport.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/transport.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js index 03eb919..99e3fb9 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js @@ -525,7 +525,6 @@ class MeshBayTransport { set onStreamError(fn) { this._onStreamError = fn; } set onIndexSync(fn) { this._onIndexSync = fn; } set onIndexDelta(fn) { this._onIndexDelta = fn; } - set onUploadPolicy(fn) { this._onUploadPolicy = fn; } set onRootsChanged(fn) { this._onRootsChanged = fn; } /** The MNP version the connected node declared, or '' before a handshake. */ @@ -3241,17 +3240,7 @@ class MeshBayTransport { return; } - // Legacy. An MNP 1.0 node still broadcasts this when its operator changes - // the group-wide upload switch, and its roots carry no `writable` for us - // to read instead — so this is the only answer available from such a node - // and it is still honoured. Nothing here *sends* the message any more: - // per-root RO/RW replaced it, and a current node answers it with a - // deprecation notice and no action. - if (msg.type === 'member_upload_ack' && this._onUploadPolicy) { - this._onUploadPolicy(Boolean(msg.allowed)); - } - - // Same shape: the operator changed which apps are shown, and everyone + // The operator changed which apps are shown, and everyone // connected hears about it without reconnecting. if (msg.type === 'apps_enabled_ack' && this._onAppsEnabled) { this._onAppsEnabled(msg.apps || []); |