|
|
@ -70,7 +70,7 @@ class InterestsViewModel @Inject constructor(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
val topicUiState: StateFlow<TopicUiState?> = topicId.flatMapLatest { topicId ->
|
|
|
|
val topicUiState: StateFlow<TopicUiState?> = topicId.flatMapLatest { topicId ->
|
|
|
|
topicUiState(
|
|
|
|
createTopicUiState(
|
|
|
|
topicId,
|
|
|
|
topicId,
|
|
|
|
userDataRepository,
|
|
|
|
userDataRepository,
|
|
|
|
userNewsResourceRepository,
|
|
|
|
userNewsResourceRepository,
|
|
|
@ -101,7 +101,7 @@ class InterestsViewModel @Inject constructor(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun topicUiState(
|
|
|
|
private fun createTopicUiState(
|
|
|
|
topicId: String?,
|
|
|
|
topicId: String?,
|
|
|
|
userDataRepository: UserDataRepository,
|
|
|
|
userDataRepository: UserDataRepository,
|
|
|
|
userNewsResourceRepository: UserNewsResourceRepository,
|
|
|
|
userNewsResourceRepository: UserNewsResourceRepository,
|
|
|
|