From 9ae9830de459edf4c7ecdd4fa78c7ae3b72af585 Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 21 Jun 2019 18:32:17 +0200 Subject: [PATCH] Fix / compilation in gplay flavor --- .../push/fcm/VectorFirebaseMessagingService.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vector/src/gplay/java/im/vector/riotredesign/push/fcm/VectorFirebaseMessagingService.kt b/vector/src/gplay/java/im/vector/riotredesign/push/fcm/VectorFirebaseMessagingService.kt index 7ef1973db3..c6da01a3b3 100755 --- a/vector/src/gplay/java/im/vector/riotredesign/push/fcm/VectorFirebaseMessagingService.kt +++ b/vector/src/gplay/java/im/vector/riotredesign/push/fcm/VectorFirebaseMessagingService.kt @@ -24,13 +24,11 @@ import android.os.Looper import android.text.TextUtils import androidx.lifecycle.Lifecycle import androidx.lifecycle.ProcessLifecycleOwner -import androidx.work.* import com.google.firebase.messaging.FirebaseMessagingService import com.google.firebase.messaging.RemoteMessage import im.vector.matrix.android.api.Matrix import im.vector.matrix.android.api.session.Session import im.vector.matrix.android.api.session.events.model.Event -import im.vector.matrix.android.internal.session.sync.job.SyncWorker import im.vector.riotredesign.BuildConfig import im.vector.riotredesign.R import im.vector.riotredesign.core.preference.BingRule @@ -42,7 +40,6 @@ import im.vector.riotredesign.features.notifications.NotificationDrawerManager import im.vector.riotredesign.features.notifications.SimpleNotifiableEvent import org.koin.android.ext.android.inject import timber.log.Timber -import java.util.concurrent.TimeUnit /** * Class extending FirebaseMessagingService. @@ -144,7 +141,7 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() { Timber.i("Ignoring push, event already knwown") } else { Timber.v("Requesting background sync") - session.requireBackgroundSync(0L) + session.requireBackgroundSync() } } @@ -219,7 +216,7 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() { return } else { - var notifiableEvent = notifiableEventResolver.resolveEvent(event, null /* TODO session.fulfillRule(event) */, session) + var notifiableEvent = notifiableEventResolver.resolveEvent(event, session) if (notifiableEvent == null) { Timber.e("Unsupported notifiable event ${eventId}")