diff --git a/src/securejoin.rs b/src/securejoin.rs index 476f9123f..d66a9752c 100644 --- a/src/securejoin.rs +++ b/src/securejoin.rs @@ -696,7 +696,10 @@ async fn could_not_establish_secure_connection( details: &str, ) -> Result<()> { let contact = Contact::get_by_id(context, contact_id).await?; - let msg = stock_str::contact_not_verified(context, &contact).await; + let mut msg = stock_str::contact_not_verified(context, &contact).await; + msg += " ("; + msg += details; + msg += ")"; chat::add_info_msg(context, chat_id, &msg, time()).await?; warn!( context, diff --git a/src/securejoin/bob.rs b/src/securejoin/bob.rs index bd7a15e3e..b33dcc88a 100644 --- a/src/securejoin/bob.rs +++ b/src/securejoin/bob.rs @@ -47,7 +47,7 @@ pub(super) async fn start_protocol(context: &Context, invite: QrInvite) -> Resul BobState::start_protocol(context, invite.clone(), chat_id).await?; for state in aborted_states { error!(context, "Aborting previously unfinished QR Join process."); - state.notify_aborted(context, "new QR scanned").await?; + state.notify_aborted(context, "New QR code scanned").await?; state.emit_progress(context, JoinerProgress::Error); } if matches!(stage, BobHandshakeStage::RequestWithAuthSent) { @@ -194,7 +194,10 @@ impl BobState { /// This creates an info message in the chat being joined. async fn notify_aborted(&self, context: &Context, why: &str) -> Result<()> { let contact = Contact::get_by_id(context, self.invite().contact_id()).await?; - let msg = stock_str::contact_not_verified(context, &contact).await; + let mut msg = stock_str::contact_not_verified(context, &contact).await; + msg += " ("; + msg += why; + msg += ")"; let chat_id = self.joining_chat_id(context).await?; chat::add_info_msg(context, chat_id, &msg, time()).await?; warn!(