mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
message: derive Ord for MessageState
This commit is contained in:
@@ -586,7 +586,7 @@ impl Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_sent(&self) -> bool {
|
pub fn is_sent(&self) -> bool {
|
||||||
self.state as i32 >= MessageState::OutDelivered as i32
|
self.state >= MessageState::OutDelivered
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_forwarded(&self) -> bool {
|
pub fn is_forwarded(&self) -> bool {
|
||||||
@@ -899,6 +899,8 @@ impl Message {
|
|||||||
Copy,
|
Copy,
|
||||||
PartialEq,
|
PartialEq,
|
||||||
Eq,
|
Eq,
|
||||||
|
PartialOrd,
|
||||||
|
Ord,
|
||||||
FromPrimitive,
|
FromPrimitive,
|
||||||
ToPrimitive,
|
ToPrimitive,
|
||||||
ToSql,
|
ToSql,
|
||||||
|
|||||||
Reference in New Issue
Block a user