- support ping incoming event and pong outgoing response
- add web heartbeat interval to keep ws alive
- add stale-connection watchdog to force reconnect on missing pong
- add websocket events user_online/user_offline
- broadcast presence changes on first connect and final disconnect only
- apply live presence updates in web chat store and realtime hook
- move public discover into unified left search (users + groups/channels)
- remove separate Discover Chats dialog/menu entry
- add user last_seen_at with alembic migration and persist on realtime disconnect
- extend chat serialization with private online/last_seen, group members/online, channel subscribers
- add Redis batch presence lookup helper
- update web chat list/header to display status counters and last-seen labels
- improve delivery receipt handling using last_delivered/last_read boundaries
- include chat info panel and related API/type updates
- make prependMessage return insertion status for dedup-safe unread increments
- increment unread only on newly inserted incoming messages
- trigger chat list refresh on websocket reconnect to resync unread counters
backend:
- add unread_count to ChatRead serialization
- compute unread_count per chat using message_receipts and hidden messages
web:
- add unread badges in chat list
- track unread boundary per chat in store
- show 'New messages' divider in message list
- update realtime flow to increment/clear unread on incoming events
backend:
- add message_hidden table for per-user message hiding
- support DELETE /messages/{id}?for_all=true|false
- implement delete-for-me vs delete-for-all logic by chat type/permissions
- add POST /chats/{chat_id}/clear and route saved chat deletion to clear
web:
- saved messages action changed from delete to clear
- message context menu now supports delete modal: for me / for everyone
- add local store helpers removeMessage/clearChatMessages
- include realtime stability improvements and app error boundary
- optimistic sending state with pending clock icon
- transition statuses sent -> delivered -> read via realtime events
- render checkmarks next to outgoing message timestamps
- add media preview and upload confirmation for image/video
- add upload progress tracking for presigned uploads
- keep voice recording/upload flow with better UI states
- include related realtime/chat updates currently in working tree