Add todos

This commit is contained in:
Benoit Marty
2023-03-15 14:39:00 +01:00
committed by Benoit Marty
parent bc7fb0a2bb
commit 7ad385965e
4 changed files with 13 additions and 4 deletions

View File

@@ -44,14 +44,14 @@ class PushersManager @Inject constructor(
)
}
fun enqueueRegisterPusherWithFcmKey(pushKey: String): UUID {
fun enqueueRegisterPusherWithFcmKey(pushKey: String)/*: UUID*/ {
return enqueueRegisterPusher(pushKey, PushConfig.pusher_http_url)
}
fun enqueueRegisterPusher(
pushKey: String,
gateway: String
): UUID {
) /*: UUID*/ {
/*
val currentSession = activeSessionHolder.getActiveSession()
val pusher = createHttpPusher(pushKey, gateway)
@@ -59,7 +59,10 @@ class PushersManager @Inject constructor(
*/
// TODO EAx
TODO()
// TODO()
// Get all sessions
// Register pusher
// Close sessions
}
private fun createHttpPusher(

View File

@@ -47,7 +47,7 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() {
Timber.tag(loggerTag.value).d("New Firebase token")
fcmHelper.storeFcmToken(token)
if (
pushDataStore.areNotificationEnabledForDevice() &&
// pushDataStore.areNotificationEnabledForDevice() &&
// TODO EAx activeSessionHolder.hasActiveSession() &&
unifiedPushHelper.isEmbeddedDistributor()
) {

View File

@@ -114,6 +114,10 @@ class VectorPushHandler @Inject constructor(
}
/* TODO EAx
- Open session
- get the event
- display the notif
val session = activeSessionHolder.getOrInitializeSession()
if (session == null) {

View File

@@ -27,4 +27,6 @@ data class PushData(
val eventId: String?,
val roomId: String?,
val unread: Int?,
// TODO EAx Client secret
)