mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Remove dependency on AppNavigationStateService from DefaultGetCurrentPushProvider
This commit is contained in:
+3
-1
@@ -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?
|
||||
}
|
||||
|
||||
+2
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user