refactor: Use self_fingerprint() where it makes sense

This commit is contained in:
Hocuri
2026-04-25 23:20:37 +02:00
parent 63596a4940
commit 45e2272da8
2 changed files with 2 additions and 6 deletions

View File

@@ -142,7 +142,7 @@ pub async fn get_securejoin_qr(context: &Context, chat: Option<ChatId>) -> Resul
let auth = create_id();
token::save(context, Namespace::Auth, grpid, &auth, time()).await?;
let fingerprint = get_self_fingerprint(context).await?.hex();
let fingerprint = self_fingerprint(context).await?;
let self_addr = context.get_primary_self_addr().await?;
let self_addr_urlencoded = utf8_percent_encode(&self_addr, DISALLOWED_CHARACTERS).to_string();

View File

@@ -152,11 +152,7 @@ async fn test_missing_key_reexecute_securejoin() -> Result<()> {
bob.sql
.execute(
"DELETE FROM public_keys WHERE fingerprint=?",
(&load_self_public_key(alice)
.await
.unwrap()
.dc_fingerprint()
.hex(),),
(&self_fingerprint(alice).await.unwrap(),),
)
.await?;
let chat = Chat::load_from_db(bob, chat_id).await?;