Improve current push provider test: give info about the distributor.

This commit is contained in:
Benoit Marty
2025-01-02 10:56:57 +01:00
parent 9714abe032
commit 7ce4b47203
6 changed files with 165 additions and 15 deletions
@@ -32,6 +32,7 @@ class FirebasePushProvider(
) : PushProvider {
override val index = FirebaseConfig.INDEX
override val name = FirebaseConfig.NAME
override val supportMultipleDistributors = false
override fun getDistributors(): List<Distributor> {
return listOfNotNull(
@@ -54,6 +55,8 @@ class FirebasePushProvider(
)
}
override suspend fun getCurrentDistributorValue(sessionId: SessionId): String = firebaseDistributor.value
override suspend fun getCurrentDistributor(sessionId: SessionId) = firebaseDistributor
override suspend fun unregister(matrixClient: MatrixClient): Result<Unit> {