Add startWith

This commit is contained in:
Benoit Marty 2020-02-01 11:45:45 +01:00
parent cd606ba8a1
commit f098d6cf5b
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class RxRoom(private val room: Room, private val session: Session) {
// TODO Do it only for room members of the room (switchMap)
val cryptoDeviceInfoObservable = session.getLiveCryptoDeviceInfo().asObservable()
.startWith(emptyList<CryptoDeviceInfo>())
return Observable
.combineLatest<List<RoomMemberSummary>, List<CryptoDeviceInfo>, List<RoomMemberSummary>>(

View File

@ -42,6 +42,7 @@ class RxSession(private val session: Session) {
.startWith(session.getRoomSummaries(queryParams))
val cryptoDeviceInfoObservable = session.getLiveCryptoDeviceInfo().asObservable()
.startWith(emptyList<CryptoDeviceInfo>())
return Observable
.combineLatest<List<RoomSummary>, List<CryptoDeviceInfo>, List<RoomSummary>>(