diff --git a/app/src/main/java/com/jerboa/model/SiteViewModel.kt b/app/src/main/java/com/jerboa/model/SiteViewModel.kt index c4b626da4..2e89b8e24 100644 --- a/app/src/main/java/com/jerboa/model/SiteViewModel.kt +++ b/app/src/main/java/com/jerboa/model/SiteViewModel.kt @@ -66,6 +66,8 @@ class SiteViewModel(private val accountRepository: AccountRepository) : ViewMode if (!it.isAnon()) { fetchUnreadCounts(GetUnreadCount(auth = it.jwt)) + } else { // Reset the unread count if we're anonymous + unreadCountRes = ApiState.Empty } } }