feat: add LXMF location envelope adapter

This commit is contained in:
torlando-agent[bot] committed 2026-08-07 01:23:28 +00:00
1 parent 3a4fef7168
commit cfe8615f9a
13 files changed
+582 -15

No files matched your search

@@ -43,10 +43,14 @@ LocationMessageDecision classifyInboundLocationMessage(
return decision;
}
BinaryView custom_meta_payload;
if (message.custom_meta.present &&
decodeCustomLocationMeta(message.custom_meta.raw_value.data,
message.custom_meta.raw_value.size,
decision.meta) != CustomMetaResult::OK) {
(unwrapLxmfBinaryFieldValue(message.custom_meta.raw_value.data,
message.custom_meta.raw_value.size,
custom_meta_payload) != FieldValueResult::OK ||
decodeCustomLocationMeta(custom_meta_payload.data,
custom_meta_payload.size,
decision.meta) != CustomMetaResult::OK)) {
// Metadata controls cease, expiry, and source ordering. Applying the
// telemetry while ignoring malformed metadata would violate all three.
decision.kind = LocationMessageKind::MALFORMED_LOCATION;