mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-06-18 05:08:30 -04:00
fix(sliding_sync): Add fallback for ignore_verification_requests when the e2e-encryption feature is disabled
This commit is contained in:
@@ -58,6 +58,7 @@ impl SlidingSyncBuilder {
|
||||
network_timeout: Duration::from_secs(30),
|
||||
#[cfg(feature = "e2e-encryption")]
|
||||
share_pos: false,
|
||||
#[cfg(feature = "e2e-encryption")]
|
||||
ignore_verification_requests: false,
|
||||
})
|
||||
}
|
||||
@@ -306,7 +307,10 @@ impl SlidingSyncBuilder {
|
||||
|
||||
poll_timeout: self.poll_timeout,
|
||||
network_timeout: self.network_timeout,
|
||||
#[cfg(feature = "e2e-encryption")]
|
||||
ignore_verification_requests: self.ignore_verification_requests,
|
||||
#[cfg(not(feature = "e2e-encryption"))]
|
||||
ignore_verification_requests: false,
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user