mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 18:36:21 +03:00
Add startWith
This commit is contained in:
parent
cd606ba8a1
commit
f098d6cf5b
2 changed files with 2 additions and 0 deletions
|
@ -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>>(
|
||||
|
|
|
@ -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>>(
|
||||
|
|
Loading…
Reference in a new issue