mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
remove unused include_in_contactlist
This commit is contained in:
@@ -115,15 +115,11 @@ impl Default for Origin {
|
|||||||
|
|
||||||
impl Origin {
|
impl Origin {
|
||||||
/// Contacts that are known, i. e. they came in via accepted contacts or
|
/// Contacts that are known, i. e. they came in via accepted contacts or
|
||||||
/// themselves an accepted contact.
|
/// themselves an accepted contact. Known contacts are shown in the
|
||||||
|
/// contact list when one creates a chat and wants to add members etc.
|
||||||
pub fn is_known(self) -> bool {
|
pub fn is_known(self) -> bool {
|
||||||
self >= Origin::IncomingReplyTo
|
self >= Origin::IncomingReplyTo
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Contacts that are shown in the contact list.
|
|
||||||
pub fn include_in_contactlist(self) -> bool {
|
|
||||||
self as i32 >= DC_ORIGIN_MIN_CONTACT_LIST
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||||
|
|||||||
Reference in New Issue
Block a user