Schedule share pref

This commit is contained in:
Andrew 2024-05-28 19:29:24 +09:30
parent 04215f74e1
commit 4fab64e6ee

View File

@ -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()) }