diff --git a/src/securejoin.rs b/src/securejoin.rs index 7444cc078..b28a3d576 100644 --- a/src/securejoin.rs +++ b/src/securejoin.rs @@ -203,7 +203,7 @@ async fn info_chat_id(context: &Context, contact_id: ContactId) -> Result Result<(Self, BobHandshakeStage, Vec)> { let (stage, next) = - if fingerprint_equals_sender(context, invite.fingerprint(), invite.contact_id()).await? + if verify_sender_by_fingerprint(context, invite.fingerprint(), invite.contact_id()) + .await? { // The scanned fingerprint matches Alice's key, we can proceed to step 4b. info!(context, "Taking securejoin protocol shortcut"); @@ -268,8 +269,12 @@ impl BobState { .await?; return Ok(Some(BobHandshakeStage::Terminated(reason))); } - if !fingerprint_equals_sender(context, self.invite.fingerprint(), self.invite.contact_id()) - .await? + if !verify_sender_by_fingerprint( + context, + self.invite.fingerprint(), + self.invite.contact_id(), + ) + .await? { self.update_next(&context.sql, SecureJoinStep::Terminated) .await?;