mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
UsersDao: fix wrong attribute used in setUserAsActive
Co-authored-by: Marcel Hibbe <dev@mhibbe.de> Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
962b1d4e3a
commit
25dd46f95a
@ -82,10 +82,9 @@ abstract class UsersDao {
|
||||
abstract fun getUserWithUsernameAndServer(username: String, server: String): Maybe<UserEntity>
|
||||
|
||||
@Query(
|
||||
"UPDATE User " +
|
||||
"SET current = CASE " +
|
||||
"UPDATE User SET current = CASE " +
|
||||
"WHEN id == :id THEN 1 " +
|
||||
"WHEN userId != :id THEN 0 " +
|
||||
"WHEN id != :id THEN 0 " +
|
||||
"END"
|
||||
)
|
||||
abstract fun setUserAsActiveWithId(id: Long): Int
|
||||
|
Loading…
Reference in New Issue
Block a user