Skip to content

Commit

Permalink
api: jsonrpc add .is_protection_broken to FullChat and BasicChat
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux authored and link2xt committed Oct 27, 2023
1 parent 53bb8a9 commit c2bab44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deltachat-jsonrpc/src/api/types/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
}
Expand All @@ -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(),
})
Expand Down

0 comments on commit c2bab44

Please sign in to comment.