Repository navigation
A chat without a composer is read-only: its messages offer only Copy and Delete for Everyone - #302
Conversation
A message request, a blocked chat, an invitation or a join request has no composer: its messages' menus (right-click, …, and the one Return opens from the keys) no longer offer Reply or Edit, and the hover Reply button doesn't show. A --snapshot of the request's menu.
|
Review ( Critical: none. Important: none. Suggestions, and what was done:
Gate after the fixes, on 2cd3443 (merged with |
… its messages No React (menu, hover button and its picker), no Retry (menu, or by a failed send's time, which says Not sent), and our reaction can't be removed: as Signal, a request or a blocked chat sends nothing else to the other side before it is answered.
|
Widened on the orchestrator's call (2675a11). In a chat without a composer, React and Retry go too, because both send something to the other person. Signal keeps a request read-only, and nothing goes to someone blocked.
The window test is now DESIGN.md has the rule. The Gate on 2675a11, which already has |
What changed
A chat without a composer is read-only, as in Signal. That covers a message request, a blocked chat, a group invitation and a join request (the cases
answer_firstcovers). A message there now offers only Copy and Delete for Everyone…:tick) instead of the pressable ⚠ Retry.How it's built:
actions::menutakescomposer. Without one, it offers only Copy and Delete. The row'sitemscome from it.itemshas React, Reply or Retry. So the menus and the buttons follow one rule.row()passes!answer_first(c). The keyboard menu andtimeline_key(Esc) ask a newhas_composer()about the open chat. That replaces the copytimeline_keyhad inline.--snapshotgainsrequest-menu: the request's "Hi!" with its menu open from the keys, showing only Copy.demo_selectednow takes which message to select.Why
#295 asked for Reply and Edit. The orchestrator widened it to React and Retry, because both send something to the other person, and Signal keeps a message request read-only: no reacting to a stranger before accepting, nothing sent to someone blocked. Delete for Everyone… and Copy stay, by that same decision. The Mac app had the same gap, so this follows the decision, not the Mac.
Not changed:
answer_firstdoesn't cover it), so it keeps everything.How it was tested
actions::window_tests::a_chat_without_a_composer_offers_only_copy_and_delete. It was written first for each step, and each version failed on the code before it: first because Reply was second, then because React was first ("the keys' menu: left None, right Some("On my way, 20 minutes")"). The Family group is made a request, then:our_sent_message_offers_everything_and_theirs_no_changes. With no composer, our message offers only Copy and Delete, and a failed one only Copy.make format && make checkon 2675a11, which already hasorigin/mainc3f74e7 merged:cargo fmt --checkpasses;cargo clippy --all-targets -D warningspasses, plain and with--features hush-desktop/snapshot;cargo test --features hush-desktop/snapshotpasses (403 + 553 tests, 4 ignored as before).cargo run -p hush-desktop --features snapshot -- --snapshot <dir>):request-menu-light: the request's "Hi!" with its menu showing only Copy.chat-light: the group's failed message still shows ⚠ Retry.selected-menu-light(the group's menu, unchanged) andreply-light(the group's hover buttons, unchanged).Not covered by a test:
All three follow the same
itemsthe menus are tested on.Closes #295