Fix issue where if no stories exist we would never display.
This commit is contained in:
parent
3088d7f182
commit
20022b88fc
1 changed files with 6 additions and 2 deletions
|
@ -70,8 +70,12 @@ class StoriesLandingRepository(context: Context) {
|
|||
createStoriesLandingItemData(recipient, messages)
|
||||
}
|
||||
|
||||
Observable.combineLatest(observables) {
|
||||
it.toList() as List<StoriesLandingItemData>
|
||||
if (observables.isEmpty()) {
|
||||
Observable.just(emptyList())
|
||||
} else {
|
||||
Observable.combineLatest(observables) {
|
||||
it.toList() as List<StoriesLandingItemData>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue