1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3634 Notifications | Handle pushKeyUpdates and store (#2379)

This commit is contained in:
Konstantin Ivanov 2025-05-06 11:28:59 +02:00 committed by GitHub
parent c0ba062b81
commit 1ef93d72db
Signed by: github
GPG key ID: B5690EEEBB952194
8 changed files with 619 additions and 0 deletions

View file

@ -0,0 +1,20 @@
package com.anytypeio.anytype.data.auth.event
import com.anytypeio.anytype.core_models.chats.PushKeyUpdate
import com.anytypeio.anytype.domain.chats.PushKeyChannel
import kotlinx.coroutines.flow.Flow
interface PushKeyRemoteChannel {
fun start()
fun stop()
fun observe(): Flow<PushKeyUpdate>
}
class PushKeyDataChannel(
private val channel: PushKeyRemoteChannel
) : PushKeyChannel {
override fun observe(): Flow<PushKeyUpdate> {
return channel.observe()
}
}