Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Riot should check for r0.6.0 server support alongside feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Sep 17, 2019
1 parent 3a31c8a commit 9738300
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private const val VERSION_R0_2_0 = "r0_2_0"
private const val VERSION_R0_3_0 = "r0_3_0"
private const val VERSION_R0_4_0 = "r0_4_0"
private const val VERSION_R0_5_0 = "r0_5_0"
private const val VERSION_R0_6_0 = "r0_6_0"

// MatrixVersionsFeature
private const val FEATURE_LAZY_LOAD_MEMBERS = "m.lazy_load_members"
Expand All @@ -52,6 +53,7 @@ fun Versions.supportLazyLoadMembers(): Boolean {
*/
fun Versions.doesServerRequireIdentityServerParam(): Boolean {
// true by default
if (supportedVersions?.contains(VERSION_R0_6_0) == true) return false
return unstableFeatures[FEATURE_REQUIRE_IDENTITY_SERVER] ?: true
}

Expand Down

0 comments on commit 9738300

Please sign in to comment.