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.js27
1 files changed, 3 insertions, 24 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index 2e3712c..32005b7 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -75,8 +75,8 @@ function _aborted() {
// back-to-back sequence) fired two of these within milliseconds of each
// other. Both admin_challenge replies, and both domain acks afterward,
// were routed by nothing more than "whichever request happens to be
-// oldest pending" — apps_enabled's challenge stole audio_root's slot, then
-// audio_root's own request just sat there until its 30s timeout, having
+// oldest pending" — apps_enabled's challenge stole app_directories' slot,
+// then that request just sat there until its 30s timeout, having
// never received a challenge to answer at all. Keying both hops by op name
// (below, in _key and in _dispatch) fixes this without needing the node to
// change anything — `op` is already on every admin_challenge, and this
@@ -532,9 +532,6 @@ class MeshBayTransport {
set onChatEpoch(fn) { this._onChatEpoch = fn; }
set onTmdbConfig(fn) { this._onTmdbConfig = fn; }
set onTmdbEnabled(fn) { this._onTmdbEnabled = fn; }
- set onVideoRoot(fn) { this._onVideoRoot = fn; }
- set onAudioRoot(fn) { this._onAudioRoot = fn; }
- set onPhotoRoots(fn) { this._onPhotoRoots = fn; }
set onMusicbrainzEnabled(fn) { this._onMusicbrainzEnabled = fn; }
set onIndexProgress(fn) { this._onIndexProgress = fn; }
// Fired when a message that must open under the group key does not —
@@ -1961,7 +1958,7 @@ class MeshBayTransport {
// signature) — carried so _sendAndWait can key this reply by op, the
// same way the admin_challenge that preceded it was keyed. Without
// it, two admin_response replies in flight together (e.g. one op's
- // audio_root_ack arriving while another's apps_enabled_ack is still
+ // app_directories_ack arriving while another's apps_enabled_ack is still
// pending) are matched by nothing more than arrival order.
op: challenge.op,
});
@@ -3133,24 +3130,6 @@ class MeshBayTransport {
this._onTmdbOverride({ fileId: msg.file_id || '', tmdbId: '', mediaType: '' });
}
- // Same shape: the operator changed which folder is the Videos app's
- // entry point for this group.
- if (msg.type === 'video_root_ack' && this._onVideoRoot) {
- this._onVideoRoot(msg.path || '');
- }
-
- // Same shape: the operator changed which folder is the Music app's
- // entry point for this group.
- if (msg.type === 'audio_root_ack' && this._onAudioRoot) {
- this._onAudioRoot(msg.path || '');
- }
-
- // Same shape: the operator replaced the Photos app's whole root set
- // for this group (docs/photos.md §2.1).
- if (msg.type === 'photo_roots_ack' && this._onPhotoRoots) {
- this._onPhotoRoots(msg.roots || []);
- }
-
// Per-group, like tmdb_enabled_ack above.
if (msg.type === 'musicbrainz_enabled_ack' && this._onMusicbrainzEnabled) {
this._onMusicbrainzEnabled(Boolean(msg.enabled));