22 lines
1.2 KiB
Markdown
22 lines
1.2 KiB
Markdown
# 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 records delivery separately from snackbar
|
|
completion, so leaving and re-entering cannot replay an in-flight notice. 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.
|