mesh: persist destination (to) on captured rx history records
This commit is contained in:
@@ -37,7 +37,7 @@ export interface MessageRecord {
|
||||
dir: 'rx' | 'tx';
|
||||
/** sender node num — rx only */
|
||||
from?: number;
|
||||
/** destination node num (broadcast addr for broadcasts) — tx only */
|
||||
/** destination node num (broadcast addr for broadcasts) — captured rx packets and all tx records */
|
||||
to?: number;
|
||||
text: string;
|
||||
channel: number;
|
||||
@@ -626,6 +626,7 @@ export class MeshService implements OnModuleInit, OnModuleDestroy {
|
||||
id: pkt.id,
|
||||
dir: 'rx',
|
||||
from: pkt.from,
|
||||
to: pkt.to, // destination (broadcast addr for broadcasts) — lets a later reply tell DM vs broadcast apart
|
||||
text,
|
||||
channel: pkt.channel ?? 0,
|
||||
at: Date.now(),
|
||||
|
||||
Reference in New Issue
Block a user