diff --git a/app/src/main/java/com/nextcloud/talk/users/UserManager.kt b/app/src/main/java/com/nextcloud/talk/users/UserManager.kt index 7c4453f95..e803e33ed 100644 --- a/app/src/main/java/com/nextcloud/talk/users/UserManager.kt +++ b/app/src/main/java/com/nextcloud/talk/users/UserManager.kt @@ -117,8 +117,8 @@ class UserManager internal constructor(private val userRepository: UsersReposito val user = it.first() user.apply { current = true - }.also { user -> - userRepository.updateUser(user) + }.also { currentUser -> + userRepository.updateUser(currentUser) } Maybe.just(user) } else {