Skip to content

Commit 0658fd8

Browse files
link2xtHocuri
andauthored
Update src/securejoin.rs
Co-authored-by: Hocuri <hocuri@gmx.de>
1 parent a594978 commit 0658fd8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/securejoin.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,12 @@ pub(crate) async fn handle_securejoin_handshake(
307307
inviter_progress(context, contact_id, 300);
308308

309309
let from_addr = ContactAddress::new(&mime_message.from.addr)?;
310-
let autocrypt_fingerprint = mime_message
311-
.autocrypt_fingerprint
312-
.clone()
313-
.unwrap_or_default();
310+
let autocrypt_fingerprint = mime_message.autocrypt_fingerprint.as_deref().unwrap_or("");
314311
let (autocrypt_contact_id, _) = Contact::add_or_lookup_ex(
315312
context,
316313
"",
317314
&from_addr,
318-
&autocrypt_fingerprint,
315+
autocrypt_fingerprint,
319316
Origin::IncomingUnknownFrom,
320317
)
321318
.await?;

0 commit comments

Comments
 (0)