refactor: add debug assertion where we expect a 1:1 chat

This commit is contained in:
link2xt
2023-12-01 22:25:36 +00:00
parent 04d22bb84d
commit 8e40540d24

View File

@@ -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?
{