mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
fmt
This commit is contained in:
@@ -2521,7 +2521,9 @@ pub unsafe extern "C" fn dc_is_sending_locations_to_chat(
|
||||
};
|
||||
|
||||
block_on(async {
|
||||
location::is_sending_locations_to_chat(ctx, chat_id).await.map(|res| res as u8)
|
||||
location::is_sending_locations_to_chat(ctx, chat_id)
|
||||
.await
|
||||
.map(|res| res as u8)
|
||||
})
|
||||
.unwrap_or_log_default(ctx, "Failed dc_is_sending_locations_to_chat()") as libc::c_int
|
||||
}
|
||||
|
||||
@@ -629,7 +629,9 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
);
|
||||
}
|
||||
}
|
||||
if location::is_sending_locations_to_chat(&context, None).await? != location::LocationSendingStatus::Disabled {
|
||||
if location::is_sending_locations_to_chat(&context, None).await?
|
||||
!= location::LocationSendingStatus::Disabled
|
||||
{
|
||||
println!("Location streaming enabled.");
|
||||
}
|
||||
println!("{cnt} chats");
|
||||
|
||||
Reference in New Issue
Block a user