fix: lookup self by address if there is no fingerprint or gossip

This commit is contained in:
link2xt
2025-07-28 16:07:42 +00:00
committed by l
parent 779f58ab16
commit 039a8b7c36
3 changed files with 113 additions and 0 deletions

View File

@@ -3747,6 +3747,9 @@ async fn add_or_lookup_key_contacts_by_address_list(
fp.hex()
} else if let Some(key) = gossiped_keys.get(addr) {
key.dc_fingerprint().hex()
} else if context.is_self_addr(addr).await? {
contact_ids.push(Some(ContactId::SELF));
continue;
} else {
contact_ids.push(None);
continue;