Basic self-reporting, core part (#5129)

Part of https://github.com/deltachat/deltachat-android/issues/2909

For now, this is only sending a few basic metrics.
This commit is contained in:
Hocuri
2024-02-07 20:23:11 +01:00
committed by GitHub
parent 11214c7d1f
commit ec9d104cf3
4 changed files with 148 additions and 12 deletions

View File

@@ -325,6 +325,11 @@ impl CommandApi {
ctx.get_info().await
}
async fn draft_self_report(&self, account_id: u32) -> Result<u32> {
let ctx = self.get_context(account_id).await?;
Ok(ctx.draft_self_report().await?.to_u32())
}
/// Sets the given configuration key.
async fn set_config(&self, account_id: u32, key: String, value: Option<String>) -> Result<()> {
let ctx = self.get_context(account_id).await?;