Improve current push provider test: give info about the distributor.
This commit is contained in:
parent
0659174735
commit
6fb194f3dd
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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue