File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -3924,18 +3924,12 @@ int dc_chat_can_send (const dc_chat_t* chat);
39243924
39253925
39263926/**
3927- * Check if a chat is protected.
3928- *
3929- * Only verified contacts
3930- * as determined by dc_contact_is_verified()
3931- * can be added to protected chats.
3932- *
3933- * Protected chats are created using dc_create_group_chat()
3934- * by setting the 'protect' parameter to 1.
3927+ * Deprecated, always returns 0.
39353928 *
39363929 * @memberof dc_chat_t
39373930 * @param chat The chat object.
3938- * @return 1=chat protected, 0=chat is not protected.
3931+ * @return Always 0.
3932+ * @deprecated 2025-09-09
39393933 */
39403934int dc_chat_is_protected (const dc_chat_t * chat );
39413935
Original file line number Diff line number Diff line change @@ -3224,13 +3224,8 @@ pub unsafe extern "C" fn dc_chat_can_send(chat: *mut dc_chat_t) -> libc::c_int {
32243224}
32253225
32263226#[ no_mangle]
3227- pub unsafe extern "C" fn dc_chat_is_protected ( chat : * mut dc_chat_t ) -> libc:: c_int {
3228- if chat. is_null ( ) {
3229- eprintln ! ( "ignoring careless call to dc_chat_is_protected()" ) ;
3230- return 0 ;
3231- }
3232- let ffi_chat = & * chat;
3233- ffi_chat. chat . is_protected ( ) as libc:: c_int
3227+ pub extern "C" fn dc_chat_is_protected ( _chat : * mut dc_chat_t ) -> libc:: c_int {
3228+ 0
32343229}
32353230
32363231#[ no_mangle]
You can’t perform that action at this time.
0 commit comments