Repository navigation
The desktop app replies to, reacts to, edits, copies and deletes messages - #180
Merged
Merged
Conversation
…actions # Conflicts: # core/desktop/src/app/mod.rs # core/desktop/src/app/view.rs
…napshots; the composer bar wraps the composer
… ends with its message, popups follow their message, clicks keep the composer's focus
Owner
Author
|
Review findings and their fixes (commit 9a4189f). Checks: Important
Suggestions
Rulings applied, no change: editing stays plain-text only (the |
This was referenced Nov 14, 2026
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.
What changed
The desktop app (
core/desktop) now does what the Mac app'sMessageActions.swift/MessageRow/ComposerViewdo with a message:pendingReactions); Remove in the list always takes ours back.The rules (which messages can be edited or deleted, for how long, story replies not editable) are the Mac app's, as pure functions in
app/actions/mod.rs. "edited" in the meta was already shown.Code: logic and state in
core/desktop/src/app/actions/mod.rs, drawing incore/desktop/src/app/actions/view.rs;app/mod.rsandapp/view.rsonly hook it in (the bubble became a column so the quote sits above its text). No core change, no new dependency.Why
Part of desktop parity: these are the everyday message actions the Mac app has.
Decisions to look at
shortcut:comment incan_edit). Delete for Everyone is still offered.Client::detailsonce per reload of the open chat (the page's 100 messages, one call; reloads while one runs fold into one more). The files issue (The desktop app shows pictures, videos, voice messages and files in chats #136) will likely read the same call for attachments; one of the two should then reuse the other's load.How it was tested
cargo fmt --check;cargo clippy -p hush-desktop --all-targets -- -D warnings, and with--features snapshot;cargo test -p hush-desktop(35 pass). The fullmake checkneeds the signing certificate this Mac lacks.<=, the story check, the pill's sort) makes them fail.--snapshot, light and dark: the chat shows a quoted reply ("Quoted / @you can you bring the big pot?"), reaction pills (❤️ 2 ours tinted, 🎉; 👍 under our own bubble), "edited", and a failed message's "⚠ Retry". A new "reply" screen shows the reply bar ("Replying to Bogdan Ionescu / Traffic is terrible today") and the hover buttons and the open reaction picker beside the message it answers; a temporary render also checked them beside an outgoing bubble (More, Reply, React).Not verified (menus don't render offscreen, and the desktop app was never linked or run live): the context menu, the More menu and the reactors popover opening, the delete prompt, hovering, selecting text and ⌘C/Ctrl+C, Esc and ↑, and sends to a real chat (react, reply, edit, delete, retry). Their logic is in the unit tests; their wiring is GPUI's / gpui-component's own components.
Closes #138
Part of #157