@@ -11,7 +11,7 @@ use anyhow::Result;
11
11
use rusqlite:: Connection ;
12
12
13
13
use super :: qrinvite:: QrInvite ;
14
- use super :: { encrypted_and_signed, fingerprint_equals_sender } ;
14
+ use super :: { encrypted_and_signed, verify_sender_by_fingerprint } ;
15
15
use crate :: chat:: { self , ChatId } ;
16
16
use crate :: config:: Config ;
17
17
use crate :: contact:: { Contact , Origin } ;
@@ -90,7 +90,8 @@ impl BobState {
90
90
chat_id : ChatId ,
91
91
) -> Result < ( Self , BobHandshakeStage , Vec < Self > ) > {
92
92
let ( stage, next) =
93
- if fingerprint_equals_sender ( context, invite. fingerprint ( ) , invite. contact_id ( ) ) . await ?
93
+ if verify_sender_by_fingerprint ( context, invite. fingerprint ( ) , invite. contact_id ( ) )
94
+ . await ?
94
95
{
95
96
// The scanned fingerprint matches Alice's key, we can proceed to step 4b.
96
97
info ! ( context, "Taking securejoin protocol shortcut" ) ;
@@ -268,8 +269,12 @@ impl BobState {
268
269
. await ?;
269
270
return Ok ( Some ( BobHandshakeStage :: Terminated ( reason) ) ) ;
270
271
}
271
- if !fingerprint_equals_sender ( context, self . invite . fingerprint ( ) , self . invite . contact_id ( ) )
272
- . await ?
272
+ if !verify_sender_by_fingerprint (
273
+ context,
274
+ self . invite . fingerprint ( ) ,
275
+ self . invite . contact_id ( ) ,
276
+ )
277
+ . await ?
273
278
{
274
279
self . update_next ( & context. sql , SecureJoinStep :: Terminated )
275
280
. await ?;
0 commit comments