Making progress on notification for multi account.

This commit is contained in:
Benoit Marty
2023-04-03 17:04:18 +02:00
committed by Benoit Marty
parent 3d1823064d
commit 0c0f7dff40
28 changed files with 483 additions and 620 deletions

View File

@@ -19,12 +19,6 @@ package io.element.android.libraries.push.api
import io.element.android.libraries.matrix.api.MatrixClient
interface PushService {
// TODO EAx remove
fun setCurrentRoom(roomId: String?)
// TODO EAx remove
fun setCurrentThread(threadId: String?)
fun notificationStyleChanged()
// Ensure pusher is registered

View File

@@ -22,6 +22,7 @@ import kotlinx.coroutines.flow.Flow
interface PushDataStore {
val pushCounterFlow: Flow<Int>
// TODO Move all those settings to the per user store...
fun areNotificationEnabledForDevice(): Boolean
fun setNotificationEnabledForDevice(enabled: Boolean)