skipping first invite emission as we only want to render future invites

This commit is contained in:
Adam Brown 2022-09-11 22:26:20 +01:00 committed by Adam Brown
parent c8eaeff48f
commit e5eb597369
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class ObserveInviteNotificationsUseCaseImpl(private val overviewStore: OverviewS
override suspend fun invoke(): Flow<InviteNotification> {
return overviewStore.latestInvites()
.diff()
.drop(1)
.flatten()
.map {
val text = when (val meta = it.inviteMeta) {