mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
Refactor dc_set_chat_profile_image, make it a bit rustier and fix bug of not being able to
unset profile_image
This commit is contained in:
@@ -645,7 +645,7 @@ pub unsafe extern "C" fn dc_set_chat_profile_image(
|
||||
assert!(chat_id > constants::DC_CHAT_ID_LAST_SPECIAL as u32);
|
||||
let context = &*context;
|
||||
|
||||
dc_chat::dc_set_chat_profile_image(context, chat_id, image)
|
||||
dc_chat::dc_set_chat_profile_image(context, chat_id, &dc_tools::to_string(image)) as libc::c_int
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user