diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 634eab881..8a3e57f29 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -2952,7 +2952,7 @@ int dc_chat_is_muted (const dc_chat_t* chat); * @param chat The chat object. * @return 0=not muted, -1=forever muted, (x>0)=remaining seconds until the mute is lifted */ -int64_t dc_chat_get_mute_duration (const dc_chat_t* chat); +int64_t dc_chat_get_remaining_mute_duration (const dc_chat_t* chat); /** diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index ae69b3a28..6423cf123 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -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; diff --git a/python/src/deltachat/chat.py b/python/src/deltachat/chat.py index 0b5ff3e40..120059ea9 100644 --- a/python/src/deltachat/chat.py +++ b/python/src/deltachat/chat.py @@ -123,7 +123,7 @@ class Chat(object): :param duration: :returns: Returns the number of seconds the chat is still muted for. (0 for not muted, -1 forever muted) """ - return bool(lib.dc_chat_get_mute_duration(self.id)) + return bool(lib.dc_chat_get_remaining_mute_duration(self.id)) def get_type(self): """ return type of this chat.