Skip to content

Commit 52a77e0

Browse files
author
Maxime NATUREL
committed
Renaming const for feature value
1 parent e67cc2b commit 52a77e0

File tree

1 file changed

+2
-2
lines changed
  • matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/version

1 file changed

+2
-2
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/version/Versions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private const val FEATURE_THREADS_MSC3440_STABLE = "org.matrix.msc3440.stable"
5757
private const val FEATURE_QR_CODE_LOGIN = "org.matrix.msc3882"
5858
private const val FEATURE_THREADS_MSC3771 = "org.matrix.msc3771"
5959
private const val FEATURE_THREADS_MSC3773 = "org.matrix.msc3773"
60-
private const val FEATURE_PUSH_NOTIFICATIONS_MSC3881 = "org.matrix.msc3881"
60+
private const val FEATURE_REMOTE_TOGGLE_PUSH_NOTIFICATIONS_MSC3881 = "org.matrix.msc3881"
6161

6262
/**
6363
* Return true if the SDK supports this homeserver version.
@@ -151,5 +151,5 @@ private fun Versions.getMaxVersion(): HomeServerVersion {
151151
* @return true if remote toggle of push notifications is supported
152152
*/
153153
internal fun Versions.doesServerSupportRemoteToggleOfPushNotifications(): Boolean {
154-
return unstableFeatures?.get(FEATURE_PUSH_NOTIFICATIONS_MSC3881).orFalse()
154+
return unstableFeatures?.get(FEATURE_REMOTE_TOGGLE_PUSH_NOTIFICATIONS_MSC3881).orFalse()
155155
}

0 commit comments

Comments
 (0)