mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +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.
|
/// This kind of message ID can not be used for real messages.
|
||||||
pub fn is_special(self) -> bool {
|
pub fn is_special(self) -> bool {
|
||||||
match self.0 {
|
self.0 <= DC_MSG_ID_LAST_SPECIAL
|
||||||
0..=DC_MSG_ID_LAST_SPECIAL => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Whether the message ID is unset.
|
/// Whether the message ID is unset.
|
||||||
|
|||||||
Reference in New Issue
Block a user