From 5397f80b8712e84766934e24548cfd46e1869966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?= Date: Tue, 22 Oct 2024 13:59:05 -0400 Subject: [PATCH] value: preserve priority when encrypting All encrypted values put on the DHT currently have the default priority of 0 because the priority information is ignored by the Value::encrypt function. --- src/value.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/value.cpp b/src/value.cpp index 15297cc04..2f0fa8be3 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -271,6 +271,7 @@ Value::encrypt(const crypto::PrivateKey& from, const crypto::PublicKey& to) setRecipient(to.getId()); sign(from); Value nv {id}; + nv.priority = priority; nv.setCypher(to.encrypt(getToEncrypt())); return nv; }