mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
Simplify MsgId.is_special()
This commit is contained in:
committed by
holger krekel
parent
2687777a82
commit
b83e6f6e7c
@@ -47,10 +47,7 @@ impl MsgId {
|
||||
///
|
||||
/// This kind of message ID can not be used for real messages.
|
||||
pub fn is_special(self) -> bool {
|
||||
match self.0 {
|
||||
0..=DC_MSG_ID_LAST_SPECIAL => true,
|
||||
_ => false,
|
||||
}
|
||||
self.0 <= DC_MSG_ID_LAST_SPECIAL
|
||||
}
|
||||
|
||||
/// Whether the message ID is unset.
|
||||
|
||||
Reference in New Issue
Block a user