diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 8a3e57f29..bb883edaf 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -1581,7 +1581,7 @@ int dc_set_chat_profile_image (dc_context_t* context, uint32_t ch /** * Set mute duration of a chat. * - * This value can be checked by the ui upon recieving a new message to decide whether it should trigger an notification. + * This value can be checked by the ui upon receiving a new message to decide whether it should trigger an notification. * * Sends out #DC_EVENT_CHAT_MODIFIED. * @@ -1591,7 +1591,7 @@ int dc_set_chat_profile_image (dc_context_t* context, uint32_t ch * @param context The context as created by dc_context_new(). * @return 1=success, 0=error */ -int dc_chat_set_mute_duration (dc_context_t* context, uint32_t chat_id, int64_t duration); +int dc_set_chat_mute_duration (dc_context_t* context, uint32_t chat_id, int64_t duration); // handle messages diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index e8cd0c0dd..d1f2248fa 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -1412,13 +1412,13 @@ pub unsafe extern "C" fn dc_set_chat_profile_image( } #[no_mangle] -pub unsafe extern "C" fn dc_chat_set_mute_duration( +pub unsafe extern "C" fn dc_set_chat_mute_duration( context: *mut dc_context_t, chat_id: u32, duration: i64, ) -> libc::c_int { if context.is_null() || chat_id <= constants::DC_CHAT_ID_LAST_SPECIAL as u32 { - eprintln!("ignoring careless call to dc_chat_set_mute_duration()"); + eprintln!("ignoring careless call to dc_set_chat_mute_duration()"); return 0; } diff --git a/python/src/deltachat/chat.py b/python/src/deltachat/chat.py index 120059ea9..5227b07f0 100644 --- a/python/src/deltachat/chat.py +++ b/python/src/deltachat/chat.py @@ -108,14 +108,14 @@ class Chat(object): mute_duration = -1 else: mute_duration = duration - return bool(lib.dc_chat_set_mute_duration(self._dc_context, self.id, mute_duration)) + return bool(lib.dc_set_chat_mute_duration(self._dc_context, self.id, mute_duration)) def unmute(self): """ unmutes the chat :returns: """ - return bool(lib.dc_chat_set_mute_duration(self._dc_context, self.id, 0)) + return bool(lib.dc_set_chat_mute_duration(self._dc_context, self.id, 0)) def get_mute_duration(self): """ Returns the number of seconds until the mute of this chat is lifted.