Skip to content

DiscoveredContact

Defined in: src/model/contacts.ts:5

A node we’ve heard an advert from. Superset of the on-radio contact list: onRadio marks whether it is currently committed to the radio’s store.

favourite: boolean;

Defined in: src/model/contacts.ts:26


firstHeardMs: number;

Defined in: src/model/contacts.ts:24

First time WE heard this pubkey (our clock), ms. Tracked app-side.


optional gpsLat?: number;

Defined in: src/model/contacts.ts:13


optional gpsLon?: number;

Defined in: src/model/contacts.ts:14


optional hops?: number;

Defined in: src/model/contacts.ts:10


key: string;

Defined in: src/model/contacts.ts:6


kind: ContactKind;

Defined in: src/model/contacts.ts:9


optional lastAdvertMs?: number;

Defined in: src/model/contacts.ts:18

Last advert time stamped by the NODE’s own clock, ms. Unreliable — a node with a wrong RTC can report a time in the future or far past. Shown as the secondary “advertised” timestamp, never used for the “last heard” sort.


optional lastHeardMs?: number;

Defined in: src/model/contacts.ts:22

Last time WE actually heard a live advert (our clock), ms. Set only on a real PUSH_NEW_ADVERT, never on a GET_CONTACTS resync — so committing a contact to the radio doesn’t bump it. Undefined until first live advert.


name: string;

Defined in: src/model/contacts.ts:8


onRadio: boolean;

Defined in: src/model/contacts.ts:25


optional outPathHashSize?: PathHashSize;

Defined in: src/model/contacts.ts:12


optional outPathHex?: string;

Defined in: src/model/contacts.ts:11


publicKeyHex: string;

Defined in: src/model/contacts.ts:7