From 4fab64e6eefe161f1482825a8d07bab9eff3253d Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 28 May 2024 19:29:24 +0930 Subject: [PATCH] Schedule share pref --- .../main/java/org/thoughtcrime/securesms/home/HomeViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/home/HomeViewModel.kt b/app/src/main/java/org/thoughtcrime/securesms/home/HomeViewModel.kt index 32e276939e..fa18a995b6 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/home/HomeViewModel.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/home/HomeViewModel.kt @@ -65,6 +65,7 @@ class HomeViewModel @Inject constructor( private fun hasHiddenMessageRequests() = TextSecurePreferences.events .filter { it == TextSecurePreferences.HAS_HIDDEN_MESSAGE_REQUESTS } + .flowOn(Dispatchers.IO) .map { prefs.hasHiddenMessageRequests() } .onStart { emit(prefs.hasHiddenMessageRequests()) }