kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix issue where if no stories exist we would never display.
rodzic
3088d7f182
commit
20022b88fc
|
@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue