feat: When a call is cleared from MSHV/WSJTx/JTDX it also clears the call field of OpsLog

This commit is contained in:
2026-07-16 11:52:42 +02:00
parent e6744c1d0a
commit 28b6f04ea4
3 changed files with 34 additions and 4 deletions
+6
View File
@@ -8887,6 +8887,12 @@ func (a *App) consumeUDPEvents() {
"source": ev.Source,
"adif": ev.LoggedADIF,
})
case ev.ClearCall:
applog.Printf("udp: emit udp:clear_call (DX Call cleared in the digital app)\n")
wruntime.EventsEmit(a.ctx, "udp:clear_call", map[string]any{
"service": string(ev.Service),
"source": ev.Source,
})
case ev.DXCall != "" && ev.Service == udp.ServiceRemoteCall:
applog.Printf("udp: emit udp:remote_call %q\n", ev.DXCall)
wruntime.EventsEmit(a.ctx, "udp:remote_call", ev.DXCall)