mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +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;
|
||||
ffi_context
|
||||
.with_inner(|ctx| {
|
||||
chat::set_muted(ctx, chat_id, muteDuration)
|
||||
chat::set_muted(ctx, ChatId::new(chat_id), muteDuration)
|
||||
.map(|_| 1)
|
||||
.unwrap_or_log_default(ctx, "Failed to set mute duration")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user