android: add message action state machine core
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -169,3 +169,10 @@
|
||||
- Implemented bulk-forward flow in `NetworkMessageRepository` with Room/chat last-message updates.
|
||||
- Added `ForwardMessageBulkUseCase` for future multi-select message actions.
|
||||
- Updated message repository unit test fakes to cover new API surface.
|
||||
|
||||
### Step 27 - Core base / message action state machine
|
||||
- Added reusable `MessageActionState` reducer with explicit selection modes (`NONE`, `SINGLE`, `MULTI`).
|
||||
- Added action-intent contract for message operations (reply/edit/forward/delete/reaction/clear).
|
||||
- Integrated `ChatViewModel` with reducer-backed selection logic while preserving current UI behavior.
|
||||
- Added base ViewModel handlers for entering/toggling multi-select mode (`onEnterMultiSelect`, `onToggleMessageMultiSelection`, `onClearSelection`).
|
||||
- Added unit tests for reducer transitions and available intents (`MessageActionStateTest`).
|
||||
|
||||
Reference in New Issue
Block a user