mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
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:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user