Skip to content

Commit 9cc1bfd

Browse files
committed
Make everything compile
1 parent 5619601 commit 9cc1bfd

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

deltachat-jsonrpc/src/api.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,6 @@ impl CommandApi {
375375
Ok(BlobObject::create_and_deduplicate(&ctx, file, file)?.to_abs_path())
376376
}
377377

378-
/// Deprecated 2025-04. Use the "self_reporting" config instead.
379-
async fn draft_self_report(&self, account_id: u32) -> Result<u32> {
380-
let ctx = self.get_context(account_id).await?;
381-
Ok(ctx.send_self_report().await?.to_u32())
382-
}
383-
384378
/// Sets the given configuration key.
385379
async fn set_config(&self, account_id: u32, key: String, value: Option<String>) -> Result<()> {
386380
let ctx = self.get_context(account_id).await?;

src/context/context_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use super::*;
66
use crate::chat::{get_chat_contacts, get_chat_msgs, send_msg, set_muted, Chat, MuteDuration};
77
use crate::chatlist::Chatlist;
88
use crate::constants::Chattype;
9+
use crate::message::Message;
910
use crate::mimeparser::SystemMessage;
1011
use crate::receive_imf::receive_imf;
1112
use crate::test_utils::{get_chat_msg, TestContext};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub mod html;
9898
pub mod net;
9999
pub mod plaintext;
100100
mod push;
101-
mod self_reporting;
101+
pub mod self_reporting;
102102
pub mod summary;
103103

104104
mod debug_logging;

src/self_reporting.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! TODO doc comment
22
3-
43
use anyhow::{Context as _, Result};
54
use pgp::types::PublicKeyTrait;
65
use serde::Serialize;
@@ -37,7 +36,7 @@ struct ChatNumbers {
3736
unencrypted_mua: u32,
3837
}
3938

40-
pub(crate) async fn maybe_send_self_report(context: &Context) -> Result<()> {
39+
pub async fn maybe_send_self_report(context: &Context) -> Result<()> {
4140
//#[cfg(target_os = "android")] TODO
4241
if context.get_config_bool(Config::SelfReporting).await? {
4342
match context.get_config_i64(Config::LastSelfReportSent).await {

0 commit comments

Comments
 (0)