fixed can_send() for users not in group

This commit is contained in:
hendrik
2021-07-14 23:10:58 +02:00
parent 308403ad99
commit a5065c21af
3 changed files with 41 additions and 10 deletions

View File

@@ -2567,7 +2567,8 @@ pub unsafe extern "C" fn dc_chat_can_send(chat: *mut dc_chat_t) -> libc::c_int {
return 0;
}
let ffi_chat = &*chat;
ffi_chat.chat.can_send() as libc::c_int
let cxt = &*ffi_chat.context;
block_on(ffi_chat.chat.can_send(cxt)) as libc::c_int
}
#[no_mangle]