mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
fix building of ffi
This commit is contained in:
@@ -1431,7 +1431,7 @@ pub unsafe extern "C" fn dc_chat_set_mute_duration(
|
|||||||
let ffi_context = &*context;
|
let ffi_context = &*context;
|
||||||
ffi_context
|
ffi_context
|
||||||
.with_inner(|ctx| {
|
.with_inner(|ctx| {
|
||||||
chat::set_muted(ctx, chat_id, muteDuration)
|
chat::set_muted(ctx, ChatId::new(chat_id), muteDuration)
|
||||||
.map(|_| 1)
|
.map(|_| 1)
|
||||||
.unwrap_or_log_default(ctx, "Failed to set mute duration")
|
.unwrap_or_log_default(ctx, "Failed to set mute duration")
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user