android: add logout flow with full local session cleanup
Some checks are pending
CI / test (push) Has started running
Some checks are pending
CI / test (push) Has started running
This commit is contained in:
@@ -307,3 +307,9 @@
|
||||
- Added `DataStoreNotificationSettingsRepository` with persistence for global flags and per-chat override mode.
|
||||
- Added `ShouldShowMessageNotificationUseCase` and wired realtime notifications through it.
|
||||
- Added unit tests for DataStore notification settings repository and notification visibility use case.
|
||||
|
||||
### Step 51 - Logout with full local cleanup
|
||||
- Added `LogoutUseCase` with centralized sign-out flow: disconnect realtime, clear active chat, clear auth session, and clear local cached data.
|
||||
- Added `SessionCleanupRepository` + `DefaultSessionCleanupRepository` to wipe Room tables and clear per-chat notification overrides.
|
||||
- Added logout action in chat list UI and wired it to `AuthViewModel`, with automatic navigation back to login via auth state.
|
||||
- Added unit tests for logout use case orchestration and notification override cleanup.
|
||||
|
||||
Reference in New Issue
Block a user