diff --git a/src/message.rs b/src/message.rs index ff3964f3c..440ac4bcd 100644 --- a/src/message.rs +++ b/src/message.rs @@ -815,7 +815,11 @@ impl Message { /// Returns the timestamp of the message for sorting. 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.