fix: Re-add oauth2 to serialized structs (#8464)

fix https://github.com/chatmail/core/issues/8463

Followup to https://github.com/chatmail/core/pull/8431: Re-dd `oauth2`
to the two structs that serialized and sent over the wire. This solves
an incompatibility problem where transports could not be synced to older
versions of DC, and profiles could not be transferred, because the
deserializer expected the field to be present.

I now added `#[serde(default)]`, so that with this PR, Delta Chat will
be compatible with both v2.56 and with older versions.
This commit is contained in:
Hocuri
2026-07-25 14:12:06 +02:00
committed by GitHub
parent 071358c605
commit 98a902b2de
6 changed files with 16 additions and 1 deletions
+1
View File
@@ -196,6 +196,7 @@ pub(crate) fn login_param_from_login_qr(
password: smtp_password.unwrap_or_default(),
},
certificate_checks: certificate_checks.unwrap_or_default(),
oauth2: false,
};
Ok(param)
}