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.js8
1 files changed, 8 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 a21da19..9de5407 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -3180,10 +3180,18 @@ class MeshBayTransport {
if (msg.type === 'index_progress') {
if (this._onIndexProgress) {
+ // `kind`, `root_pos`, `queued` and the file counts are absent from a
+ // node older than the indexing dock; index-dock-model.js reads them
+ // missing as idle defaults.
this._onIndexProgress({
scanning: Boolean(msg.scanning),
scanned_bytes: msg.scanned_bytes || 0,
total_bytes: msg.total_bytes || 0,
+ files_done: msg.files_done || 0,
+ files_total: msg.files_total || 0,
+ kind: msg.kind || '',
+ root_pos: Number.isInteger(msg.root_pos) ? msg.root_pos : -1,
+ queued: Number.isInteger(msg.queued) ? msg.queued : 0,
});
}
return;