From 48888898ee148ed7b70fa825acffa6829c56c5cf Mon Sep 17 00:00:00 2001 From: WofWca Date: Fri, 21 Aug 2026 13:12:02 +0400 Subject: [PATCH] docs(json-rpc): clarify when `reactions` is `None` Initially I thought that this is only `null` when reactions are somehow not applicable to this message. --- deltachat-jsonrpc/src/api.rs | 1 + deltachat-jsonrpc/src/api/types/message.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index a44bde831..89ac5a60c 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -2458,6 +2458,7 @@ impl CommandApi { } /// Returns reactions to the message. + /// `None` when there are no reactions. async fn get_message_reactions( &self, account_id: u32, diff --git a/deltachat-jsonrpc/src/api/types/message.rs b/deltachat-jsonrpc/src/api/types/message.rs index f33091e98..969a65d5b 100644 --- a/deltachat-jsonrpc/src/api/types/message.rs +++ b/deltachat-jsonrpc/src/api/types/message.rs @@ -105,6 +105,7 @@ pub struct MessageObject { is_pinned: bool, + /// `None` when there are no reactions. reactions: Option, vcard_contact: Option,