android: unify api error mapping across data repositories
Some checks failed
CI / test (push) Failing after 2m13s

This commit is contained in:
Codex
2026-03-09 15:22:27 +03:00
parent 375f5756d3
commit 16c21d1bb7
8 changed files with 91 additions and 64 deletions

View File

@@ -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.