android: unify api error mapping across data repositories
Some checks failed
CI / test (push) Failing after 2m13s
Some checks failed
CI / test (push) Failing after 2m13s
This commit is contained in:
@@ -333,3 +333,8 @@
|
||||
|
||||
### Step 55 - Chat multi-select action cleanup
|
||||
- Removed duplicate forward action in multi-select mode (`Forward selected`), leaving a single clear forward action button.
|
||||
|
||||
### Step 56 - Unified API error handling
|
||||
- Added shared API error mapper (`ApiErrorMapper`) with mode-aware mapping (`DEFAULT`, `LOGIN`).
|
||||
- Switched auth/chat/message/media repositories to a single `Throwable -> AppError` mapping source.
|
||||
- Kept login-specific invalid-credentials mapping while standardizing unauthorized/server/network handling for other API calls.
|
||||
|
||||
Reference in New Issue
Block a user