mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +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? {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user