Emitting an empty list if it cannot decrypt it

This commit is contained in:
Vitor Pamplona
2023-11-30 11:22:42 -05:00
parent 2b27ac3aec
commit b021920eaa
@@ -210,6 +210,8 @@ class Account(
}
result?.let {
emit(it)
} ?: run {
emit(LiveFollowLists())
}
}
}.stateIn(scope, SharingStarted.Eagerly, LiveFollowLists())
@@ -241,6 +243,8 @@ class Account(
}
result?.let {
emit(it)
} ?: run {
emit(LiveFollowLists())
}
}
}.stateIn(scope, SharingStarted.Eagerly, LiveFollowLists())
@@ -272,6 +276,8 @@ class Account(
}
result?.let {
emit(it)
} ?: run {
emit(LiveFollowLists())
}
}
}.stateIn(scope, SharingStarted.Eagerly, LiveFollowLists())
@@ -303,6 +309,8 @@ class Account(
}
result?.let {
emit(it)
} ?: run {
emit(LiveFollowLists())
}
}
}.stateIn(scope, SharingStarted.Eagerly, LiveFollowLists())