Update user when changing class

This commit is contained in:
Hafiz 2022-09-16 03:07:47 -04:00
parent 7b4100c32e
commit 891de53a14

View file

@ -161,7 +161,7 @@ class UserRepositoryImpl(
override fun disableClasses(): Flowable<User> = apiClient.disableClasses().flatMap { retrieveUser(withTasks = false, forced = true) }
override fun changeClass(selectedClass: String): Flowable<User> = apiClient.changeClass(selectedClass)
.flatMap { retrieveUser(false) }
.flatMap { retrieveUser(false, forced = true) }
override fun unlockPath(path: String, price: Int): Flowable<UnlockResponse> {
return zipWithLiveUser(apiClient.unlockPath(path)) { unlockResponse, copiedUser ->