Matthias Nott
2026-03-07 8cdf33e27c633ac30e8851c4617f6063c141660d
refs
author Matthias Nott <mnott@mnsoft.org>
Saturday, March 7, 2026 17:53 +0100
committer Matthias Nott <mnott@mnsoft.org>
Saturday, March 7, 2026 17:53 +0100
commit8cdf33e27c633ac30e8851c4617f6063c141660d
tree 77da91548ab5d335d619cf04bcef8f14407a4b77 tree | zip | gz
parent 7d69229cd76447b92ee66f472f760994d00817ae view | diff
fix: audio routing, WebSocket reconnection, inverted chat list

- Set audio mode once at startup instead of per-playback (fixes Bluetooth/CarPlay disconnect)
- Add AppState listener to force WebSocket reconnect on foreground resume
- Add 20s heartbeat ping/pong to detect zombie sockets after network switch
- Rewrite MessageList with inverted FlatList (WhatsApp-style bottom-anchored)
- Add reverse pagination: load last 50 messages, pull more on scroll up
- Wire loadMoreMessages/hasMoreMessages from ChatContext into chat screen
5 files modified
changed files
app/chat.tsx diff | view | blame | history
components/chat/MessageList.tsx diff | view | blame | history
contexts/ChatContext.tsx diff | view | blame | history
services/audio.ts diff | view | blame | history
services/websocket.ts diff | view | blame | history