TopicsRepository

The catalogue of selectable topics (the Topic.All pseudo-topic is excluded - callers add it where a "show everything" option is wanted). Backed by TopicPreferencesStore's persisted catalogue (seeded with Topic.selectable on first launch) and reconciled against GET /v1/topics once per app open — a failed fetch is tolerated and just keeps the stored catalogue. Topics the server has that the catalogue doesn't surface in pendingNewTopics until acknowledgeNewTopics is called, so the UI can announce them once.

Inheritors

Properties

Link copied to clipboard
abstract val pendingNewTopics: StateFlow<List<Topic>>

Topics the latest refresh discovered that the user hasn't been told about yet.

Link copied to clipboard
abstract val topics: StateFlow<List<Topic>>

Functions

Link copied to clipboard
abstract fun acknowledgeNewTopics()
Link copied to clipboard
abstract suspend fun refresh()