diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 053f5fc12..fc02f6079 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -3890,18 +3890,12 @@ int dc_chat_can_send (const dc_chat_t* chat); /** - * Check if a chat is protected. - * - * Only verified contacts - * as determined by dc_contact_is_verified() - * can be added to protected chats. - * - * Protected chats are created using dc_create_group_chat() - * by setting the 'protect' parameter to 1. + * Deprecated, always returns 0. * * @memberof dc_chat_t * @param chat The chat object. - * @return 1=chat protected, 0=chat is not protected. + * @return Always 0. + * @deprecated 2025-09-09 */ int dc_chat_is_protected (const dc_chat_t* chat); diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 96157e4bb..5aadde771 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -3206,13 +3206,8 @@ pub unsafe extern "C" fn dc_chat_can_send(chat: *mut dc_chat_t) -> libc::c_int { } #[no_mangle] -pub unsafe extern "C" fn dc_chat_is_protected(chat: *mut dc_chat_t) -> libc::c_int { - if chat.is_null() { - eprintln!("ignoring careless call to dc_chat_is_protected()"); - return 0; - } - let ffi_chat = &*chat; - ffi_chat.chat.is_protected() as libc::c_int +pub extern "C" fn dc_chat_is_protected(_chat: *mut dc_chat_t) -> libc::c_int { + 0 } #[no_mangle]