rename dc_chat_get_mute_duration

to dc_chat_get_remaining_mute_duration
This commit is contained in:
Simon Laux
2020-02-08 13:07:43 +01:00
parent e04d28c885
commit 1fb75c1af3
3 changed files with 4 additions and 4 deletions

View File

@@ -2523,9 +2523,9 @@ pub unsafe extern "C" fn dc_chat_is_muted(chat: *mut dc_chat_t) -> libc::c_int {
}
#[no_mangle]
pub unsafe extern "C" fn dc_chat_get_mute_duration(chat: *mut dc_chat_t) -> i64 {
pub unsafe extern "C" fn dc_chat_get_remaining_mute_duration(chat: *mut dc_chat_t) -> i64 {
if chat.is_null() {
eprintln!("ignoring careless call to dc_chat_get_mute_duration()");
eprintln!("ignoring careless call to dc_chat_get_remaining_mute_duration()");
return 0;
}
let ffi_chat = &*chat;