mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:30:43 +00:00
UnifiedPush WIP
This commit is contained in:
committed by
Benoit Marty
parent
8f565edb0a
commit
287fca5438
+1
@@ -18,4 +18,5 @@ package io.element.android.libraries.matrix.api.pusher
|
||||
|
||||
interface PushersService {
|
||||
suspend fun setHttpPusher(setHttpPusherData: SetHttpPusherData): Result<Unit>
|
||||
suspend fun unsetHttpPusher(): Result<Unit>
|
||||
}
|
||||
|
||||
+5
@@ -53,4 +53,9 @@ class RustPushersService(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun unsetHttpPusher(): Result<Unit> {
|
||||
// TODO Missing client API. We need to set the pusher with Kind == null, but we do not have access to this field from the SDK.
|
||||
return Result.success(Unit)
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -21,4 +21,5 @@ import io.element.android.libraries.matrix.api.pusher.SetHttpPusherData
|
||||
|
||||
class FakePushersService : PushersService {
|
||||
override suspend fun setHttpPusher(setHttpPusherData: SetHttpPusherData) = Result.success(Unit)
|
||||
override suspend fun unsetHttpPusher(): Result<Unit> = Result.success(Unit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user