mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
use warn! for ffi-usage-errors
This commit is contained in:
@@ -1071,7 +1071,7 @@ pub unsafe extern "C" fn dc_set_chat_protection(
|
|||||||
let protect = if let Some(s) = ProtectionStatus::from_i32(protect) {
|
let protect = if let Some(s) = ProtectionStatus::from_i32(protect) {
|
||||||
s
|
s
|
||||||
} else {
|
} else {
|
||||||
eprintln!("bad protect-value for dc_set_chat_protection()");
|
warn!(ctx, "bad protect-value for dc_set_chat_protection()");
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1207,6 +1207,7 @@ pub unsafe extern "C" fn dc_create_group_chat(
|
|||||||
let protect = if let Some(s) = ProtectionStatus::from_i32(protect) {
|
let protect = if let Some(s) = ProtectionStatus::from_i32(protect) {
|
||||||
s
|
s
|
||||||
} else {
|
} else {
|
||||||
|
warn!(ctx, "bad protect-value for dc_create_group_chat()");
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user