From 732da0e478be461b0091740e77e504d6e90f59ff Mon Sep 17 00:00:00 2001 From: Adrien Beraud Date: Thu, 11 Jun 2026 16:48:30 -0400 Subject: [PATCH] default types: add ValueId to TrustRequest --- include/opendht/default_types.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/opendht/default_types.h b/include/opendht/default_types.h index 5862185d..6e028b46 100644 --- a/include/opendht/default_types.h +++ b/include/opendht/default_types.h @@ -159,7 +159,13 @@ public: {} static Value::Filter getFilter() { return EncryptedValue::getFilter(); } + virtual void unpackValue(const dht::Value& v) override + { + BaseClass::unpackValue(v); + id = v.id; + } + dht::Value::Id id {0}; /// Value ID of the trust request, used for deserialization only. std::string service; std::string conversationId; Blob payload;