Return bool from dc_msg_get_showpadlock

This commit is contained in:
Alexander Krotov
2019-09-12 12:38:32 +03:00
parent fa8192177d
commit 400ab2cdab
3 changed files with 4 additions and 9 deletions

View File

@@ -229,7 +229,7 @@ unsafe fn log_msg(context: &Context, prefix: impl AsRef<str>, msg: &Message) {
"{}#{}{}{}: {} (Contact#{}): {} {}{}{}{} [{}]",
prefix.as_ref(),
dc_msg_get_id(msg) as libc::c_int,
if 0 != dc_msg_get_showpadlock(msg) {
if dc_msg_get_showpadlock(msg) {
"🔒"
} else {
""