From cbabd4219ec650ac9f6fe5499fefa92b9c8c218b Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 6 Dec 2023 17:37:49 +0000 Subject: [PATCH] refactor: improve error message when non-verified contact is added to protected chat --- src/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index 6036143c3..d81108e39 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -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); }