diff --git a/Working-notes.md b/Working-notes.md index a7f0ad1..1a7786a 100644 --- a/Working-notes.md +++ b/Working-notes.md @@ -290,11 +290,20 @@ design change, before a phone. (every reconnection of `/events` says all live replies again). A frame with `live: false` clears the row's running mark and marks it unread, with no read (`ended`) -- not unread for the chat on screen (`ChatsViewModel.open`). -- **A person's message with `origin` `unsure`** (queued; handed to the linked computer, its - arrival never heard) is drawn with the server's sentence in place of the queued line - (`Message.fateUnknown`): the instance never sends it by itself. `/api/v2` has no "send now" - and no "discard" for a waiting message; when it gets them, the buttons go on that line. Any - other origin the app does not know is drawn as none. +- **A message that waits is `Message.waiting`** (`api/Display.kt`: a person's message with + `queued` true -- `Queued` behind a reply, `Unsure` for `origin` `unsure`, `Carried` for + `carried`; an origin the app does not know waits as a queued one). It says how it waits + under its bubble (the server's sentences for the two origins, never the queue's progress + line) and has Send now and Discard there -- only where `UserMessage` is given the two + callbacks, which the chat's own screen does and nothing that may be over the lock screen + ever should. **It is never offered Edit** (`Message.editable`): the instance refuses that. + The two actions are `WaitingActions` (`ui/chat/Waiting.kt`, `WaitingMessageTest`): one at a + time (`ChatState.acting`); a send reads the chat once and follows the reply it started as + the person's own, unless the read no longer holds it (`followedAfterSend`: a computer that + still knew the message does not run it twice and the reply's row is removed); a 409 or a + 404 (`staleWaiting`) is said in the instance's words and the chat read again once nothing + is being written on the screen -- never beside a stream, where a stale row could be drawn + over a finished one. `sendWaiting` declares `client` like every request that starts a reply. - **Whether an instance says the ends is learned, not assumed** (`ReplyEnds`: a `live: false` for a reply it had said with `live: true`). Until then, and for instances that never do, `watchRunning` reads the list again at a bounded rate (`runningPause`: 5 s doubling to a