project-robius / robrix

A Matrix chat client written in pure Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
67 stars 11 forks source link

Refactor `ReplyPreview` into component views #126

Closed kevinaboos closed 2 weeks ago

kevinaboos commented 2 weeks ago

This avoids the confusion of using the same single ReplyPreview view for multiple purposes (an inline reply and a reply-to draft preview), and instead clarifies the intended usage of each view by using different views for those two purposes.

This also avoids the more complex logic of having to rememeber to mark certain subviews as visible or not.

kevinaboos commented 2 weeks ago

Contributes to #125