From 4147b06d088e2c22dcc3c2a6df564e9f0af6f2f5 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Wed, 8 Mar 2023 20:38:16 +0100 Subject: [PATCH] [merge] Fix build Change-Id: I05a3dbb9e136f30c429bcc67670bb9411f6476a7 --- .../app/features/home/GetSpacesNotificationBadgeStateUseCase.kt | 2 ++ .../java/im/vector/app/features/home/NewHomeDetailViewState.kt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/GetSpacesNotificationBadgeStateUseCase.kt b/vector/src/main/java/im/vector/app/features/home/GetSpacesNotificationBadgeStateUseCase.kt index 62d1501dab..ea5c0ada7b 100644 --- a/vector/src/main/java/im/vector/app/features/home/GetSpacesNotificationBadgeStateUseCase.kt +++ b/vector/src/main/java/im/vector/app/features/home/GetSpacesNotificationBadgeStateUseCase.kt @@ -61,6 +61,8 @@ class GetSpacesNotificationBadgeStateUseCase @Inject constructor( UnreadCounterBadgeView.State.Count( count = spacesNotificationCount.notificationCount, highlighted = spacesNotificationCount.isHighlight || hasPendingSpaceInvites, + unread = spacesNotificationCount.unreadCount, + markedUnread = false, ) } } diff --git a/vector/src/main/java/im/vector/app/features/home/NewHomeDetailViewState.kt b/vector/src/main/java/im/vector/app/features/home/NewHomeDetailViewState.kt index 7e368fb2d1..4493d1880a 100644 --- a/vector/src/main/java/im/vector/app/features/home/NewHomeDetailViewState.kt +++ b/vector/src/main/java/im/vector/app/features/home/NewHomeDetailViewState.kt @@ -20,5 +20,5 @@ import com.airbnb.mvrx.MavericksState import im.vector.app.features.home.room.list.UnreadCounterBadgeView data class NewHomeDetailViewState( - val spacesNotificationCounterBadgeState: UnreadCounterBadgeView.State = UnreadCounterBadgeView.State.Count(count = 0, highlighted = false), + val spacesNotificationCounterBadgeState: UnreadCounterBadgeView.State = UnreadCounterBadgeView.State.Count(count = 0, highlighted = false, unread = 0, markedUnread = false), ) : MavericksState