fix: Manipulate sort_timestamp to not be 0

This commit is contained in:
Hocuri
2026-03-28 16:35:01 +01:00
committed by l
parent 8f1bf963b4
commit 920da083d1

View File

@@ -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.