Add startWith
This commit is contained in:
parent
cd606ba8a1
commit
f098d6cf5b
|
@ -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)
|
// TODO Do it only for room members of the room (switchMap)
|
||||||
val cryptoDeviceInfoObservable = session.getLiveCryptoDeviceInfo().asObservable()
|
val cryptoDeviceInfoObservable = session.getLiveCryptoDeviceInfo().asObservable()
|
||||||
|
.startWith(emptyList<CryptoDeviceInfo>())
|
||||||
|
|
||||||
return Observable
|
return Observable
|
||||||
.combineLatest<List<RoomMemberSummary>, List<CryptoDeviceInfo>, List<RoomMemberSummary>>(
|
.combineLatest<List<RoomMemberSummary>, List<CryptoDeviceInfo>, List<RoomMemberSummary>>(
|
||||||
|
|
|
@ -42,6 +42,7 @@ class RxSession(private val session: Session) {
|
||||||
.startWith(session.getRoomSummaries(queryParams))
|
.startWith(session.getRoomSummaries(queryParams))
|
||||||
|
|
||||||
val cryptoDeviceInfoObservable = session.getLiveCryptoDeviceInfo().asObservable()
|
val cryptoDeviceInfoObservable = session.getLiveCryptoDeviceInfo().asObservable()
|
||||||
|
.startWith(emptyList<CryptoDeviceInfo>())
|
||||||
|
|
||||||
return Observable
|
return Observable
|
||||||
.combineLatest<List<RoomSummary>, List<CryptoDeviceInfo>, List<RoomSummary>>(
|
.combineLatest<List<RoomSummary>, List<CryptoDeviceInfo>, List<RoomSummary>>(
|
||||||
|
|
Loading…
Reference in New Issue