mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Fix unix timestamp used for daymarker
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user