mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 21:15:30 +03:00
set user.current by value from userAttributes
this should have no effect but it should ensure "current" is not falsely set to true if the method storeProfile will be used for more scenarios in the future. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
d4e545e67d
commit
e9dbcc554a
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class UserManager internal constructor(private val userRepository: UsersReposito
|
|||
else -> {
|
||||
user.token = userAttributes.token
|
||||
user.baseUrl = userAttributes.serverUrl
|
||||
user.current = true
|
||||
user.current = userAttributes.currentUser
|
||||
user.userId = userAttributes.userId
|
||||
user.token = userAttributes.token
|
||||
user.displayName = userAttributes.displayName
|
||||
|
@ -237,7 +237,7 @@ class UserManager internal constructor(private val userRepository: UsersReposito
|
|||
data class UserAttributes(
|
||||
val id: Long?,
|
||||
val serverUrl: String?,
|
||||
val currentUser: Boolean?,
|
||||
val currentUser: Boolean,
|
||||
val userId: String?,
|
||||
val token: String?,
|
||||
val displayName: String?,
|
||||
|
|
Loading…
Reference in a new issue