mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 12:11:59 +00:00
update the correct observable
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
2f24c130ca
commit
f23075b2dd
@ -72,7 +72,7 @@ class ChatViewModel @Inject constructor(private val repository: ChatRepository)
|
||||
}
|
||||
|
||||
fun joinRoom(user: User, token: String, roomPassword: String) {
|
||||
_getRoomViewState.value = JoinRoomStartState
|
||||
_joinRoomViewState.value = JoinRoomStartState
|
||||
repository.joinRoom(user, token, roomPassword)
|
||||
.subscribeOn(Schedulers.io())
|
||||
?.observeOn(AndroidSchedulers.mainThread())
|
||||
|
Loading…
Reference in New Issue
Block a user