From a144a450e1d9509ecb115951b3f1729028ea60eb Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 21 Sep 2026 11:02:48 +0000 Subject: [PATCH] api!: remove `addr` field from Account objects in JSON-RPC APIs `list_transports()` should be used instead. Previously `addr` field might have even not correspond to any transport as it was `Config::Addr` and not `Config::ConfiguredAddr`. BREAKING CHANGE: list_transports() should be used instead. --- deltachat-jsonrpc/src/api/types/account.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/deltachat-jsonrpc/src/api/types/account.rs b/deltachat-jsonrpc/src/api/types/account.rs index 345af666a..418eb494a 100644 --- a/deltachat-jsonrpc/src/api/types/account.rs +++ b/deltachat-jsonrpc/src/api/types/account.rs @@ -13,7 +13,6 @@ pub enum Account { Configured { id: u32, display_name: Option, - addr: Option, // size: u32, profile_image: Option, color: String, @@ -29,7 +28,6 @@ impl Account { pub async fn from_context(ctx: &deltachat::context::Context, id: u32) -> Result { if ctx.is_configured().await? { let display_name = ctx.get_config(Config::Displayname).await?; - let addr = ctx.get_config(Config::Addr).await?; let profile_image = ctx.get_config(Config::Selfavatar).await?; let color = color_int_to_hex_string( Contact::get_by_id(ctx, ContactId::SELF) @@ -41,7 +39,6 @@ impl Account { Ok(Account::Configured { id, display_name, - addr, profile_image, color, private_tag,