mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Schedule share pref
This commit is contained in:
parent
04215f74e1
commit
4fab64e6ee
@ -65,6 +65,7 @@ class HomeViewModel @Inject constructor(
|
|||||||
|
|
||||||
private fun hasHiddenMessageRequests() = TextSecurePreferences.events
|
private fun hasHiddenMessageRequests() = TextSecurePreferences.events
|
||||||
.filter { it == TextSecurePreferences.HAS_HIDDEN_MESSAGE_REQUESTS }
|
.filter { it == TextSecurePreferences.HAS_HIDDEN_MESSAGE_REQUESTS }
|
||||||
|
.flowOn(Dispatchers.IO)
|
||||||
.map { prefs.hasHiddenMessageRequests() }
|
.map { prefs.hasHiddenMessageRequests() }
|
||||||
.onStart { emit(prefs.hasHiddenMessageRequests()) }
|
.onStart { emit(prefs.hasHiddenMessageRequests()) }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user