wip: preserve chat hide notice work
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Local hide notice lifetime
|
||||
|
||||
## What this item changed
|
||||
|
||||
`android/app/src/main/java/net/awan/pipelines/ui/chat/ChatListPane.kt` now presents a local-hide
|
||||
notice once with Material's short, finite snackbar duration. The `ChatStore` keeps the one-shot
|
||||
notice separate from the undoable local override, and the pane consumes it only after the snackbar
|
||||
finishes so changing the effect key cannot cancel its display. A later hide replaces the pending
|
||||
notice rather than queueing it. Returning to the list,
|
||||
recomposition and a session refresh therefore cannot replay an already-finished notice; Undo still
|
||||
restores only the current local hide and does not delete server state or history.
|
||||
|
||||
`ChatRemovalNoticeTest` covers finite-notice consumption, rapid hides, Undo and list re-entry using
|
||||
the pure store, with no real-time wait.
|
||||
|
||||
## Shared documents this change makes stale
|
||||
|
||||
- `android/README.md`'s chat-session behaviour should say that **Hide on this device** has a
|
||||
short, finite Undo notice, rapid hides replace rather than queue notices, and an expired or
|
||||
consumed notice is not replayed when returning to the list. It should name
|
||||
`ChatRemovalNoticeTest` as unit-test evidence and leave on-device timing to visual review.
|
||||
Reference in New Issue
Block a user