mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Sort provider by index
This commit is contained in:
committed by
Benoit Marty
parent
7333995630
commit
21a07fda07
+1
-2
@@ -35,8 +35,7 @@ class DefaultPushService @Inject constructor(
|
||||
}
|
||||
|
||||
override fun getAvailablePushProviders(): List<PushProvider> {
|
||||
// TODO Sort by priority?
|
||||
return pushProviders.toList()
|
||||
return pushProviders.sortedBy { it.index }
|
||||
}
|
||||
|
||||
override suspend fun registerWith(matrixClient: MatrixClient, pushProvider: PushProvider, distributorName: String) {
|
||||
|
||||
Reference in New Issue
Block a user