-
Notifications
You must be signed in to change notification settings - Fork 0
Draft
Conversation
Rust no message
Introduce a controlled message input and client-side send flow, and rename the DB save function. - Add message_input field to AppState in client and server-initialized state so the UI can hold draft messages. - Implement a controlled Input in event_list: update AppState on input events, build and sign a Message event, and post it asynchronously; clear the input after sending. Replace direct DOM lookup with state-driven value. - Update server handler to initialize message_input in the served AppState. - Rename db function save_create_account_event -> save_event and update its call site in main.rs. - Minor cleanup: unused EventHandler parameters renamed to _set_state in login/create dialog handlers. These changes enable composing and sending message events from the UI and align the server DB API naming. Follow-up: ensure db::save_event implementation persists message events as intended.
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.