mirror of
https://github.com/chatmail/core.git
synced 2026-05-18 22:36:29 +03:00
fix: Manipulate sort_timestamp to not be 0
This commit is contained in:
@@ -815,7 +815,11 @@ impl Message {
|
|||||||
|
|
||||||
/// Returns the timestamp of the message for sorting.
|
/// Returns the timestamp of the message for sorting.
|
||||||
pub fn get_sort_timestamp(&self) -> i64 {
|
pub fn get_sort_timestamp(&self) -> i64 {
|
||||||
self.timestamp_sort
|
if self.timestamp_sort != 0 {
|
||||||
|
self.timestamp_sort
|
||||||
|
} else {
|
||||||
|
self.timestamp_sent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the text of the message.
|
/// Returns the text of the message.
|
||||||
|
|||||||
Reference in New Issue
Block a user