mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Add a developer option for history sharing on invite (#4821)
Adds a new developer flag, enabling our experimental support for MSC4268.
This commit is contained in:
committed by
GitHub
parent
680b63d460
commit
b6680ac5d8
+11
@@ -112,6 +112,17 @@ enum class FeatureFlags(
|
|||||||
defaultValue = { false },
|
defaultValue = { false },
|
||||||
isFinished = false,
|
isFinished = false,
|
||||||
),
|
),
|
||||||
|
EnableKeyShareOnInvite(
|
||||||
|
key = "feature.enableKeyShareOnInvite",
|
||||||
|
title = "Share encrypted history with new members",
|
||||||
|
description = "When inviting a user to an encrypted room that has history visibility set to \"shared\"," +
|
||||||
|
" share encrypted history with that user, and accept encrypted history when you are invited to such a room." +
|
||||||
|
"\nRequires an app restart to take effect." +
|
||||||
|
"\n\nWARNING: this feature is EXPERIMENTAL and not all security precautions are implemented." +
|
||||||
|
" Do not enable on production accounts.",
|
||||||
|
defaultValue = { false },
|
||||||
|
isFinished = false,
|
||||||
|
),
|
||||||
Knock(
|
Knock(
|
||||||
key = "feature.knock",
|
key = "feature.knock",
|
||||||
title = "Ask to join",
|
title = "Ask to join",
|
||||||
|
|||||||
+1
@@ -127,6 +127,7 @@ class RustMatrixClientFactory @Inject constructor(
|
|||||||
TrustRequirement.UNTRUSTED
|
TrustRequirement.UNTRUSTED
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
.enableShareHistoryOnInvite(featureFlagService.isFeatureEnabled(FeatureFlags.EnableKeyShareOnInvite))
|
||||||
.run {
|
.run {
|
||||||
// Apply sliding sync version settings
|
// Apply sliding sync version settings
|
||||||
when (slidingSyncType) {
|
when (slidingSyncType) {
|
||||||
|
|||||||
+1
@@ -41,6 +41,7 @@ class FakeFfiClientBuilder : ClientBuilder(NoPointer) {
|
|||||||
override fun slidingSyncVersionBuilder(versionBuilder: SlidingSyncVersionBuilder) = this
|
override fun slidingSyncVersionBuilder(versionBuilder: SlidingSyncVersionBuilder) = this
|
||||||
override fun userAgent(userAgent: String) = this
|
override fun userAgent(userAgent: String) = this
|
||||||
override fun username(username: String) = this
|
override fun username(username: String) = this
|
||||||
|
override fun enableShareHistoryOnInvite(enableShareHistoryOnInvite: Boolean): ClientBuilder = this
|
||||||
|
|
||||||
override suspend fun buildWithQrCode(qrCodeData: QrCodeData, oidcConfiguration: OidcConfiguration, progressListener: QrLoginProgressListener): Client {
|
override suspend fun buildWithQrCode(qrCodeData: QrCodeData, oidcConfiguration: OidcConfiguration, progressListener: QrLoginProgressListener): Client {
|
||||||
return FakeFfiClient()
|
return FakeFfiClient()
|
||||||
|
|||||||
Reference in New Issue
Block a user