refactor: improve error message when non-verified contact is added to protected chat

This commit is contained in:
link2xt
2023-12-18 21:03:09 +00:00
parent 548afe3153
commit cbabd4219e
+1 -1
View File
@@ -3566,7 +3566,7 @@ pub(crate) async fn add_contact_to_chat_ex(
if chat.is_protected() && !contact.is_verified(context).await? {
error!(
context,
"Only bidirectional verified contacts can be added to protected chats."
"Cannot add non-bidirectionally verified contact {contact_id} to protected chat {chat_id}."
);
return Ok(false);
}