mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +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 {
|
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
|
.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!("Location streaming enabled.");
|
||||||
}
|
}
|
||||||
println!("{cnt} chats");
|
println!("{cnt} chats");
|
||||||
|
|||||||
Reference in New Issue
Block a user