Fix duplicate callsign in TCP API RX.DIRECTED messages

The value field in RX.DIRECTED messages was using the formatted 'text'
variable which includes the FROM callsign prefix. When TCP clients
reconstruct messages as "FROM: value", this resulted in duplicate
callsigns (e.g., "W9TEK: W9TEK: KC1QKM SNR -05").

Changed the value parameter from 'text' to 'd.text' (the raw message
body without FROM prefix) to match the TEXT parameter behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Manuel Ochoa 2026-01-29 12:38:35 -05:00 committed by Chris Olson
parent 444b21bdcf
commit 246621c992

View file

@ -150,7 +150,7 @@ void UI_Constructor::processCommandActivity() {
// write all directed messages to api
if (canSendNetworkMessage()) {
sendNetworkMessage(
"RX.DIRECTED", text,
"RX.DIRECTED", d.text,
{{"_ID", QVariant(-1)},
{"FROM", QVariant(d.from)},
{"TO", QVariant(d.to)},