mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Fix dc_chat_get_remaining_mute_duration
Return time since current time, not UNIX epoch.
This commit is contained in:
committed by
link2xt
parent
528b5e9469
commit
801b9f3ffa
@@ -2445,7 +2445,7 @@ pub unsafe extern "C" fn dc_chat_get_remaining_mute_duration(chat: *mut dc_chat_
|
||||
MuteDuration::NotMuted => 0,
|
||||
MuteDuration::Forever => -1,
|
||||
MuteDuration::Until(when) => when
|
||||
.duration_since(SystemTime::UNIX_EPOCH)
|
||||
.duration_since(SystemTime::now())
|
||||
.map(|d| d.as_secs() as i64)
|
||||
.unwrap_or(0),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user