Origin::is_verified() -> Origin::is_known() because this has nothing to do with verified groups or contacts

This commit is contained in:
holger krekel
2019-12-19 14:33:46 +01:00
parent 5f200c6bc3
commit 6c14e429eb
2 changed files with 7 additions and 6 deletions

View File

@@ -114,9 +114,10 @@ impl Default for Origin {
}
impl Origin {
/// Contacts that are verified and known not to be spam.
pub fn is_verified(self) -> bool {
self as i32 >= 0x100
/// Contacts that are known, i. e. they came in via accepted contacts or
/// themselves an accepted contact.
pub fn is_known(self) -> bool {
self >= Origin::IncomingReplyTo
}
/// Contacts that are shown in the contact list.