mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
refactor: add debug assertion where we expect a 1:1 chat
This commit is contained in:
@@ -788,6 +788,7 @@ async fn add_parts(
|
|||||||
false => None,
|
false => None,
|
||||||
};
|
};
|
||||||
if let Some(chat) = chat {
|
if let Some(chat) = chat {
|
||||||
|
debug_assert!(chat.typ == Chattype::Single);
|
||||||
let mut new_protection =
|
let mut new_protection =
|
||||||
match has_verified_encryption(context, mime_parser, from_id, to_ids).await?
|
match has_verified_encryption(context, mime_parser, from_id, to_ids).await?
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user