android: add deferred offline queue for send edit delete actions
Some checks failed
CI / test (push) Failing after 2m21s

This commit is contained in:
Codex
2026-03-09 15:32:05 +03:00
parent 3eb68cedad
commit 43b772a394
9 changed files with 263 additions and 6 deletions

View File

@@ -347,3 +347,9 @@
### Step 58 - Keep authenticated session when offline at app start
- Updated auth restore flow in `AuthViewModel`: network errors during session restore no longer force logout when local tokens exist.
- App now opens authenticated flow in offline mode instead of redirecting to login.
### Step 59 - Deferred message action queue (send/edit/delete)
- Added Room-backed pending action queue (`pending_message_actions`) for message operations that fail due to network issues.
- Implemented enqueue + optimistic behavior for `sendText`, `editMessage`, and `deleteMessage` on network failures.
- Added automatic pending-action flush on chat sync/load-more and before new message operations.
- Kept non-network server failures as immediate errors (no queueing), while allowing offline continuation.