mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +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,
|
||||
};
|
||||
if let Some(chat) = chat {
|
||||
debug_assert!(chat.typ == Chattype::Single);
|
||||
let mut new_protection =
|
||||
match has_verified_encryption(context, mime_parser, from_id, to_ids).await?
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user