mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
refactor: improve error message when non-verified contact is added to protected chat
This commit is contained in:
@@ -3566,7 +3566,7 @@ pub(crate) async fn add_contact_to_chat_ex(
|
|||||||
if chat.is_protected() && !contact.is_verified(context).await? {
|
if chat.is_protected() && !contact.is_verified(context).await? {
|
||||||
error!(
|
error!(
|
||||||
context,
|
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);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user