talk-android/app/src
Marcel Hibbe caeeb16ea4 self heal if multiple current users exist
usersDao.getActiveUser() will return only one current users even if multiple exist for whatever reason.
By executing setUserAsActiveWithId(it.id) with the same user, it is made sure all other users current status is set to 0.

This change won't fix the root cause if multiple users are set to current, but it will make sure the state is fixed as soon as there is a query to get the active user.

In fact, this change might also make it harder to find the root cause because debugging may be more difficult! When searching for the root cause, always keep this in mind and maybe revert the change.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-03 17:51:43 +00:00
..
androidTest/java/com/nextcloud/talk ktlintFormat 2024-11-21 11:34:24 +01:00
generic Add SPDX header 2024-03-24 15:19:21 +01:00
gplay Fix naming of app in header 2024-03-24 20:06:56 +01:00
main self heal if multiple current users exist 2025-02-03 17:51:43 +00:00
qa fix: Have correct SPDX license header for logo/trademarked items 2024-04-25 18:29:46 +02:00
test Send state also through signaling messages 2025-01-08 12:35:17 +01:00