Use correct default val for theme observable

This commit is contained in:
Moez Bhatti
2020-01-12 01:21:10 -05:00
parent 25904059c4
commit 7d9cd35c7c
@@ -89,7 +89,8 @@ class Colors @Inject constructor(
fun themeObservable(recipient: Recipient? = null): Observable<Theme> {
val pref = when {
recipient == null || !prefs.autoColor.get() -> prefs.theme()
recipient == null -> prefs.theme()
prefs.autoColor.get() -> prefs.theme(recipient.id, prefs.theme().get())
else -> prefs.theme(recipient.id, generateColor(recipient))
}
return pref.asObservable()