Skip to content

Commit

Permalink
fixup! chore: Allow setting a custom vodozemac account
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed May 27, 2024
1 parent 74883c8 commit deb8800
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion crates/matrix-sdk/src/matrix_auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,13 @@ impl MatrixAuth {
#[cfg(feature = "e2e-encryption")] login_info: Option<login::v3::LoginInfo>,
) -> Result<()> {
self.set_session_tokens(session.tokens);
self.client.set_session_meta(session.meta, None).await?;
self.client
.set_session_meta(
session.meta,
#[cfg(feature = "e2e-encryption")]
None,
)
.await?;

#[cfg(feature = "e2e-encryption")]
{
Expand Down
8 changes: 7 additions & 1 deletion crates/matrix-sdk/src/oidc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,13 @@ impl Oidc {
authorization_data: Default::default(),
};

self.client.set_session_meta(meta, None).await?;
self.client
.set_session_meta(
meta,
#[cfg(feature = "e2e-encryption")]
None,
)
.await?;
self.deferred_enable_cross_process_refresh_lock().await;

self.client
Expand Down

0 comments on commit deb8800

Please sign in to comment.