Fix unix timestamp used for daymarker

This commit is contained in:
link2xt
2022-10-12 17:56:21 +00:00
parent 0e2445c7a0
commit 6f329c9e96
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@
### Fixes ### Fixes
- share stock string translations across accounts created by the same account manager #3640 - share stock string translations across accounts created by the same account manager #3640
- suppress welcome device messages after account import #3642 - suppress welcome device messages after account import #3642
- fix unix timestamp used for daymarker #3660
## 1.96.0 ## 1.96.0

View File

@@ -2254,7 +2254,7 @@ pub async fn get_chat_msgs(
let curr_day = curr_local_timestamp / 86400; let curr_day = curr_local_timestamp / 86400;
if curr_day != last_day { if curr_day != last_day {
ret.push(ChatItem::DayMarker { ret.push(ChatItem::DayMarker {
timestamp: curr_day, timestamp: curr_day * 86400, // Convert day back to Unix timestamp
}); });
last_day = curr_day; last_day = curr_day;
} }