Add a developer option for history sharing on invite

Adds a new developer flag, enabling our experimental support for MSC4268.
This commit is contained in:
Richard van der Hoff
2025-06-05 13:34:33 +01:00
committed by Stefan Ceriu
parent db3f9f4d26
commit 394eb008ab
7 changed files with 25 additions and 3 deletions
@@ -16,6 +16,7 @@ extension ClientBuilder {
sessionDelegate: ClientSessionDelegate,
appHooks: AppHooks,
enableOnlySignedDeviceIsolationMode: Bool,
enableKeyShareOnInvite: Bool,
requestTimeout: UInt64? = 30000,
maxRequestRetryTime: UInt64? = nil) -> ClientBuilder {
var builder = ClientBuilder()
@@ -37,6 +38,7 @@ extension ClientBuilder {
builder = builder
.autoEnableCrossSigning(autoEnableCrossSigning: true)
.backupDownloadStrategy(backupDownloadStrategy: .afterDecryptionFailure)
.enableShareHistoryOnInvite(enableShareHistoryOnInvite: enableKeyShareOnInvite)
.autoEnableBackups(autoEnableBackups: true)
if enableOnlySignedDeviceIsolationMode {