Skip to content

Conversation

@LunarX
Copy link
Contributor

@LunarX LunarX commented Jan 26, 2026

Lots of code was duplicated among all our apps. Here the duplicated code is centralized. Also the currentUser and currentUserId now rely on flow instead of hardcoded values to avoid initilization errors and keep a single source of truth.

The system is designed for apps that only need to handle users and for apps that also need to store a current user. Both use cases are supported.

CredentialManager is split into two classes, the unnecessary code stays inside CredentialManager and only the needed code goes into BaseCredentialManager for the new utils

@LunarX LunarX requested a review from sirambd January 26, 2026 14:37
@LunarX LunarX self-assigned this Jan 26, 2026
@LunarX LunarX added the feature A new functionality is added to the product label Jan 26, 2026
@LunarX LunarX force-pushed the update-account-utils branch 2 times, most recently from b919c26 to 0fc8b51 Compare January 26, 2026 15:00
@LunarX LunarX marked this pull request as ready for review January 27, 2026 09:19
@LunarX LunarX requested a review from tevincent January 27, 2026 09:19
@LunarX LunarX force-pushed the update-account-utils branch from 993c3e7 to 8794f7a Compare January 27, 2026 09:21
@LunarX LunarX force-pushed the update-account-utils branch from bee926d to 8db28f4 Compare January 29, 2026 15:41
@LunarX LunarX force-pushed the update-account-utils branch from 8db28f4 to d0d42b6 Compare January 30, 2026 07:32
@LunarX LunarX force-pushed the update-account-utils branch 4 times, most recently from b080379 to 0b3a2f7 Compare January 30, 2026 14:29
@LunarX LunarX force-pushed the update-account-utils branch 2 times, most recently from 96c62e3 to 8b81d9e Compare January 30, 2026 14:45
This protects against only updating half of the room state by making these transactions atomic
@LunarX LunarX force-pushed the update-account-utils branch from 8b81d9e to b7cb28d Compare January 30, 2026 15:30
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new functionality is added to the product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants