From 52513804dc4abf4b5001cb5dffc4de1568fca88a Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Mon, 27 Jul 2026 10:30:24 -0400 Subject: [PATCH] fix(tips): show unread tip count on the scanner Tips tab badge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SessionState.tipsUnreadCount is kept up to date by RealSessionController (observing TIP_DM unread conversations) and re-emits when a tip push triggers a feed refresh — but ScannerNavigationBar never forwarded it into the NavigationBarState it builds, so NavigationBarState.tipUnreadCount stayed at its default 0 and the Tips tab badge never showed or updated. Pass state.tipsUnreadCount through as tipUnreadCount. (Note the naming mismatch: SessionState.tipsUnreadCount vs NavigationBarState.tipUnreadCount.) --- .../app/scanner/internal/ui/components/ScannerNavigationBar.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/ui/components/ScannerNavigationBar.kt b/apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/ui/components/ScannerNavigationBar.kt index e85e74002..d6c1b54ff 100644 --- a/apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/ui/components/ScannerNavigationBar.kt +++ b/apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/ui/components/ScannerNavigationBar.kt @@ -51,6 +51,7 @@ internal fun ScannerNavigationBar( config = effectiveConfig, state = NavigationBarState( contactDmUnreadCount = state.contactDmUnreadCount, + tipUnreadCount = state.tipsUnreadCount, showToast = billState.showToast && billState.toast != null, toastText = billState.toast?.formattedAmount, isPaused = isPaused,