mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Properly unregister from the ntfy app when the user logs out.
This commit is contained in:
committed by
Benoit Marty
parent
022cd93653
commit
7a7b5d2dd0
+6
@@ -8,6 +8,7 @@
|
||||
package io.element.android.libraries.pushproviders.api
|
||||
|
||||
import io.element.android.libraries.matrix.api.MatrixClient
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
|
||||
/**
|
||||
* This is the main API for this module.
|
||||
@@ -43,6 +44,11 @@ interface PushProvider {
|
||||
*/
|
||||
suspend fun unregister(matrixClient: MatrixClient): Result<Unit>
|
||||
|
||||
/**
|
||||
* To invoke when the session is deleted.
|
||||
*/
|
||||
suspend fun onSessionDeleted(sessionId: SessionId)
|
||||
|
||||
suspend fun getCurrentUserPushConfig(): CurrentUserPushConfig?
|
||||
|
||||
fun canRotateToken(): Boolean
|
||||
|
||||
Reference in New Issue
Block a user