From ec9d2f37afa749660f13d2ccb829151f74ae794c Mon Sep 17 00:00:00 2001 From: Kayos Date: Mon, 25 May 2026 14:09:11 -0700 Subject: [PATCH] vc=37 fix: pool changed from StateFlow to plain var; drop .value refs --- .../kotlin/com/sulkta/straw/feature/search/SearchViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strawApp/src/main/kotlin/com/sulkta/straw/feature/search/SearchViewModel.kt b/strawApp/src/main/kotlin/com/sulkta/straw/feature/search/SearchViewModel.kt index 4b938edd3..082d61fdb 100644 --- a/strawApp/src/main/kotlin/com/sulkta/straw/feature/search/SearchViewModel.kt +++ b/strawApp/src/main/kotlin/com/sulkta/straw/feature/search/SearchViewModel.kt @@ -172,7 +172,7 @@ class SearchViewModel : ViewModel() { // Refresh the in-memory pool with the new // entries so subsequent reactive filters see // them without waiting for a process restart. - pool.value = buildPool() + pool = buildPool() } } } catch (t: Throwable) { @@ -194,7 +194,7 @@ class SearchViewModel : ViewModel() { */ private fun reactiveFilter(q: String): List { val needle = q.lowercase() - return pool.value.asSequence() + return pool.asSequence() .filter { item -> item.title.lowercase().contains(needle) || item.uploader.lowercase().contains(needle)