mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-06-06 11:51:37 +00:00
fix(#1468): drop client-side "unknown" channel synthesis
CHAN messages with no decoded channel name were being bucketed under a synthetic "unknown" channel on the client. Drop those rows so the channel sidebar reflects what was actually decoded upstream.
This commit is contained in:
+7
-1
@@ -1332,7 +1332,13 @@
|
||||
var payload = m.data?.decoded?.payload;
|
||||
if (!payload) continue;
|
||||
|
||||
var channelName = payload.channel || 'unknown';
|
||||
// #1468: drop CHAN messages with no decoded channel name instead of
|
||||
// synthesizing a literal "unknown" row that renders as a fake channel
|
||||
// in the sidebar. Server-side (#1373/#1377) already filters these from
|
||||
// /api/channels; the live WebSocket router was the remaining offender.
|
||||
if (!payload.channel) continue;
|
||||
|
||||
var channelName = payload.channel;
|
||||
// For live-decrypted user-added (PSK) channels, decryptLivePSKBatch
|
||||
// also stamps payload.channelKey ("user:<name>") so we route the
|
||||
// message to the correct sidebar row and to the open chat view.
|
||||
|
||||
Reference in New Issue
Block a user