feat: do not post "... verified" messages on QR scan success

We still post "... not verified" on failure.
This commit is contained in:
link2xt
2023-11-13 23:29:24 +00:00
parent 678142b3fb
commit c6ea4e389a
3 changed files with 10 additions and 64 deletions

View File

@@ -222,9 +222,7 @@ impl BobState {
/// This creates an info message in the chat being joined.
async fn notify_peer_verified(&self, context: &Context) -> Result<()> {
let contact = Contact::get_by_id(context, self.invite().contact_id()).await?;
let msg = stock_str::contact_verified(context, &contact).await;
let chat_id = self.joining_chat_id(context).await?;
chat::add_info_msg(context, chat_id, &msg, time()).await?;
if context
.get_config_bool(Config::VerifiedOneOnOneChats)