fix: Make self-contact a key-contact even if key isn't generated yet

This commit is contained in:
iequidoo
2026-01-22 02:54:27 -03:00
committed by iequidoo
parent baeb31b5fa
commit c5f19f67a9

View File

@@ -1454,7 +1454,7 @@ WHERE addr=?
/// Returns true if the contact is a key-contact.
/// Otherwise it is an addresss-contact.
pub fn is_key_contact(&self) -> bool {
self.fingerprint.is_some()
self.fingerprint.is_some() || self.id == ContactId::SELF
}
/// Returns OpenPGP fingerprint of a contact.