Draft
Conversation
- Introduced a new protocol for worker commands and events in `protocol.dart`. - Replaced legacy event handling with a structured command/event system in `account_server.dart`, `decrypt_message.dart`, and `message_worker_isolate.dart`. - Implemented `IsolateRouter` to manage communication between main and worker isolates. - Added `IsolateRpcClient` for handling RPC requests and responses between isolates. - Created `WorkerSupervisor` to manage worker lifecycle, including restart logic and heartbeat monitoring. - Updated all relevant files to utilize the new command/event structure, improving maintainability and clarity. - Removed deprecated imports and unused code related to the old isolate communication method.
…proved state handling
…perations - Introduced various payload classes for handling database write operations, including conversation updates, job management, participant sessions, message status updates, and sticker management. - Implemented a new worker isolate (`db_write_worker_isolate.dart`) to handle database write tasks asynchronously, improving performance and responsiveness. - Enhanced the database interaction layer with methods for inserting, updating, and deleting records across multiple entities such as users, conversations, messages, and stickers.
- Replaced `message_worker_isolate.dart` with `sync_worker_isolate.dart` for improved message processing. - Introduced `AppRuntimeSessionHost` to manage runtime sessions and handle database writes. - Updated `HomePage` and `NetworkStatus` to utilize the new session management structure. - Enhanced `DecryptMessage` and related jobs to work with the new sync worker architecture. - Removed deprecated `message_worker_isolate.dart` and its associated code.
- Added `HydrationStorage` for persistent key-value storage with JSON support. - Created `ConversationFilterNotifier` and `ConversationFilterState` for managing conversation filtering logic. - Introduced tests for runtime hub architecture, RPC client, worker supervisor, and UI components to ensure proper functionality and adherence to design patterns. - Enforced usage of UI context providers instead of direct context lookups in various UI components.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.