mirror of
https://github.com/chatmail/core.git
synced 2026-05-12 11:26:29 +03:00
fix: Make self-contact a key-contact even if key isn't generated yet
This commit is contained in:
@@ -1454,7 +1454,7 @@ WHERE addr=?
|
|||||||
/// Returns true if the contact is a key-contact.
|
/// Returns true if the contact is a key-contact.
|
||||||
/// Otherwise it is an addresss-contact.
|
/// Otherwise it is an addresss-contact.
|
||||||
pub fn is_key_contact(&self) -> bool {
|
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.
|
/// Returns OpenPGP fingerprint of a contact.
|
||||||
|
|||||||
Reference in New Issue
Block a user