From a9ca67088007269a8b5a7b45215b7d99b12e4309 Mon Sep 17 00:00:00 2001 From: WofWca Date: Tue, 11 Aug 2026 16:00:37 +0400 Subject: [PATCH] docs(json-rpc): improve `reactions_by_contact` doc Sync `reactions_by_contact` with the "backend" struct docs. Follow-up to bd846c6e4370608701b948e30ed75a422820d9d4 (https://github.com/chatmail/core/pull/8450). --- deltachat-jsonrpc/src/api/types/reactions.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deltachat-jsonrpc/src/api/types/reactions.rs b/deltachat-jsonrpc/src/api/types/reactions.rs index 4d40775acd..91f29a1dd0 100644 --- a/deltachat-jsonrpc/src/api/types/reactions.rs +++ b/deltachat-jsonrpc/src/api/types/reactions.rs @@ -23,8 +23,11 @@ pub struct JsonrpcReaction { #[serde(rename = "Reactions", rename_all = "camelCase")] pub struct JsonrpcReactions { /// Map from a contact to it's reaction to message. + /// /// There is only a single reaction per contact, /// but this contains a list of reactions for historical reasons. + /// + /// For channels subscribers, this map is empty or contains `ContactId::SELF` only. reactions_by_contact: BTreeMap>, /// Unique reactions and their count, sorted in descending order. reactions: Vec,