Fix draft message persistence between chatroom switches#24
Merged
ftk789 merged 3 commits intoKickTalkOrg:mainfrom Oct 14, 2025
Merged
Fix draft message persistence between chatroom switches#24ftk789 merged 3 commits intoKickTalkOrg:mainfrom
ftk789 merged 3 commits intoKickTalkOrg:mainfrom
Conversation
- Add cross-platform icon handling for Linux/macOS support - Convert Windows .ico to .png for non-Windows platforms - Update tray and thumbar icons to use platform-appropriate format Fixes application crashes on Linux due to unsupported .ico format 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add draft storage to ChatProvider state using Map for per-chatroom drafts - Create DraftManager component to handle automatic saving and restoration - Save draft content on editor changes using Lexical update listeners - Restore draft content when switching back to chatrooms - Clear drafts when messages are sent successfully - Fix Lexical node structure by properly using paragraph nodes Fixes #23 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
Encountered issue where emotes (both 7tv and kick) restore as the name and not the image of the emote, but found the same happens on restore last message/arrow up, so will tackle in a separate issue. |
6 tasks
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.
Summary
Implements draft message persistence to resolve the issue where unsent messages are lost when switching between chatrooms.
Changes Made
draftMessagesMap to ChatProvider state for per-chatroom draft storageTechnical Implementation
registerUpdateListenerfor real-time draft savingTest Plan
Fixes
Closes #23
🤖 Generated with Claude Code