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