feat: history manager for real time composer

Merged
MA
3mo ago
+795-34

Proposed changes (including videos or screenshots)

Issue(s)

RTC-11

Steps to test or reproduce

Further comments

Summary by CodeRabbit

  • New Features
    • Added undo and redo support to the rich-text message composer, preserving selection and formatting across edits.
    • Supports keyboard shortcuts, paste-like updates, IME composition, and programmatic changes.
    • Clears composer history when switching rooms.
  • Bug Fixes
    • Improved reply text insertion to preserve existing selection behavior.
    • Refined caret handling for empty blocks and line breaks.
    • Prevents unintended re-rendering from untrusted composer events.
  • Tests
    • Added unit and end-to-end coverage for undo/redo, trusted-event handling, and room switching.