Clarify some doc drift

This commit is contained in:
Jack Kingsman
2026-02-16 19:15:27 -08:00
parent 65b74b624b
commit 1a59eb89fa
3 changed files with 4 additions and 3 deletions

View File

@@ -63,7 +63,8 @@ app/
### Connection lifecycle
- `RadioManager.start_connection_monitor()` checks health every 5s.
- On reconnect, monitor runs `post_connect_setup()` before broadcasting healthy state.
- Monitor reconnect path runs `post_connect_setup()` before broadcasting healthy state.
- Manual reconnect/reboot endpoints call `reconnect()` then `post_connect_setup()`.
- Setup includes handler registration, key export, time sync, contact/channel sync, polling/advert tasks.
## Important Behaviors

View File

@@ -35,7 +35,7 @@ async def mark_all_read() -> dict:
"""Mark all contacts and channels as read.
Updates last_read_at to current timestamp for all contacts and channels
in a single database transaction.
using two repository updates (same timestamp value across both tables).
"""
now = int(time.time())

View File

@@ -97,7 +97,7 @@ Specialized logic is delegated to hooks:
### Message behavior
- Outgoing sends are optimistic in UI and persisted server-side.
- Outgoing sends are added to UI after the send API returns (not pre-send optimistic insertion), then persisted server-side.
- Backend also emits WS `message` for outgoing sends so other clients stay in sync.
- ACK/repeat updates arrive as `message_acked` events.
- Outgoing channel messages show a 30-second resend control; resend calls `POST /api/messages/channel/{message_id}/resend`.