From c2bab44bddf614d69d27ce9596665fecd4ab634d Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Fri, 27 Oct 2023 00:08:24 +0200 Subject: [PATCH] api: jsonrpc add `.is_protection_broken` to FullChat and BasicChat --- deltachat-jsonrpc/src/api/types/chat.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deltachat-jsonrpc/src/api/types/chat.rs b/deltachat-jsonrpc/src/api/types/chat.rs index e2146c8c1..2bbc194ac 100644 --- a/deltachat-jsonrpc/src/api/types/chat.rs +++ b/deltachat-jsonrpc/src/api/types/chat.rs @@ -31,6 +31,7 @@ pub struct FullChat { fresh_message_counter: usize, // is_group - please check over chat.type in frontend instead is_contact_request: bool, + is_protection_broken: bool, is_device_chat: bool, self_in_group: bool, is_muted: bool, @@ -100,6 +101,7 @@ impl FullChat { color, fresh_message_counter, is_contact_request: chat.is_contact_request(), + is_protection_broken: chat.is_protection_broken(), is_device_chat: chat.is_device_talk(), self_in_group: contact_ids.contains(&ContactId::SELF), is_muted: chat.is_muted(), @@ -134,6 +136,7 @@ pub struct BasicChat { is_self_talk: bool, color: String, is_contact_request: bool, + is_protection_broken: bool, is_device_chat: bool, is_muted: bool, } @@ -160,6 +163,7 @@ impl BasicChat { is_self_talk: chat.is_self_talk(), color, is_contact_request: chat.is_contact_request(), + is_protection_broken: chat.is_protection_broken(), is_device_chat: chat.is_device_talk(), is_muted: chat.is_muted(), })