mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 22:20:20 +00:00
Fix issue where if no stories exist we would never display.
This commit is contained in:
committed by
Cody Henthorne
parent
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>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user