Add todos
This commit is contained in:
committed by
Benoit Marty
parent
bc7fb0a2bb
commit
7ad385965e
@@ -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(
|
||||
|
||||
@@ -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()
|
||||
) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -27,4 +27,6 @@ data class PushData(
|
||||
val eventId: String?,
|
||||
val roomId: String?,
|
||||
val unread: Int?,
|
||||
|
||||
// TODO EAx Client secret
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user