Remove dependency on AppNavigationStateService from DefaultGetCurrentPushProvider
This commit is contained in:
parent
2acc6db70f
commit
705b1b08f2
15 changed files with 66 additions and 70 deletions
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
package io.element.android.libraries.push.api
|
||||
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
|
||||
interface GetCurrentPushProvider {
|
||||
suspend fun getCurrentPushProvider(): String?
|
||||
suspend fun getCurrentPushProvider(sessionId: SessionId): String?
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ interface PushService {
|
|||
/**
|
||||
* Return the current push provider, or null if none.
|
||||
*/
|
||||
suspend fun getCurrentPushProvider(): PushProvider?
|
||||
suspend fun getCurrentPushProvider(sessionId: SessionId): PushProvider?
|
||||
|
||||
/**
|
||||
* Return the list of push providers, available at compile time, sorted by index.
|
||||
|
|
@ -51,7 +51,7 @@ interface PushService {
|
|||
/**
|
||||
* Return false in case of early error.
|
||||
*/
|
||||
suspend fun testPush(): Boolean
|
||||
suspend fun testPush(sessionId: SessionId): Boolean
|
||||
|
||||
/**
|
||||
* Get a flow of total number of received Push.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue