Skip to content

Commit bb3bc39

Browse files
committed
fix: replace magic string with named constant per review feedback
1 parent 290e8b8 commit bb3bc39

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/gateway/session-utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,9 +1131,10 @@ export function buildGatewaySessionRow(params: {
11311131
const space = entry?.space;
11321132
const id = parsed?.id;
11331133
const origin = entry?.origin;
1134-
// Exclude internal system sender IDs (e.g. "heartbeat") from the display
1135-
// name fallback chain so the webchat session selector stays meaningful.
1136-
const originLabel = origin?.label && origin.label !== "heartbeat" ? origin.label : undefined;
1134+
// Matches the fallback sender ID in resolveHeartbeatSenderId (targets.ts).
1135+
const HEARTBEAT_FALLBACK_SENDER = "heartbeat";
1136+
const originLabel =
1137+
origin?.label && origin.label !== HEARTBEAT_FALLBACK_SENDER ? origin.label : undefined;
11371138
const displayName =
11381139
entry?.displayName ??
11391140
(channel

0 commit comments

Comments
 (0)