Add todos

This commit is contained in:
Benoit Marty
2023-03-15 14:39:00 +01:00
committed by Benoit Marty
parent 1aa699f522
commit 70d41311ca
4 changed files with 13 additions and 4 deletions
@@ -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) return enqueueRegisterPusher(pushKey, PushConfig.pusher_http_url)
} }
fun enqueueRegisterPusher( fun enqueueRegisterPusher(
pushKey: String, pushKey: String,
gateway: String gateway: String
): UUID { ) /*: UUID*/ {
/* /*
val currentSession = activeSessionHolder.getActiveSession() val currentSession = activeSessionHolder.getActiveSession()
val pusher = createHttpPusher(pushKey, gateway) val pusher = createHttpPusher(pushKey, gateway)
@@ -59,7 +59,10 @@ class PushersManager @Inject constructor(
*/ */
// TODO EAx // TODO EAx
TODO() // TODO()
// Get all sessions
// Register pusher
// Close sessions
} }
private fun createHttpPusher( private fun createHttpPusher(
@@ -47,7 +47,7 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() {
Timber.tag(loggerTag.value).d("New Firebase token") Timber.tag(loggerTag.value).d("New Firebase token")
fcmHelper.storeFcmToken(token) fcmHelper.storeFcmToken(token)
if ( if (
pushDataStore.areNotificationEnabledForDevice() && // pushDataStore.areNotificationEnabledForDevice() &&
// TODO EAx activeSessionHolder.hasActiveSession() && // TODO EAx activeSessionHolder.hasActiveSession() &&
unifiedPushHelper.isEmbeddedDistributor() unifiedPushHelper.isEmbeddedDistributor()
) { ) {
@@ -114,6 +114,10 @@ class VectorPushHandler @Inject constructor(
} }
/* TODO EAx /* TODO EAx
- Open session
- get the event
- display the notif
val session = activeSessionHolder.getOrInitializeSession() val session = activeSessionHolder.getOrInitializeSession()
if (session == null) { if (session == null) {
@@ -27,4 +27,6 @@ data class PushData(
val eventId: String?, val eventId: String?,
val roomId: String?, val roomId: String?,
val unread: Int?, val unread: Int?,
// TODO EAx Client secret
) )