From e5eb5973696d17b242f72b4ee07b417edd24aa37 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sun, 11 Sep 2022 22:26:20 +0100 Subject: [PATCH] skipping first invite emission as we only want to render future invites --- .../dapk/st/notifications/ObserveInviteNotificationsUseCase.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/ObserveInviteNotificationsUseCase.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/ObserveInviteNotificationsUseCase.kt index 802fb24..67d88c5 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/ObserveInviteNotificationsUseCase.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/ObserveInviteNotificationsUseCase.kt @@ -14,6 +14,7 @@ class ObserveInviteNotificationsUseCaseImpl(private val overviewStore: OverviewS override suspend fun invoke(): Flow { return overviewStore.latestInvites() .diff() + .drop(1) .flatten() .map { val text = when (val meta = it.inviteMeta) {