v1.0.1 — Fix scroll-up chat pagination
What's new in v1.0.1
Bug fixes
- Scroll-up now loads older messages — Chat history pagination was silently stopping after the first page. The app now correctly fetches additional pages from the Evolution API as you scroll up, with a loading spinner and preserved scroll position.
Technical details
- Rewrote
chatFetchMessagesto use the API's page-based response format ({ messages: { total, pages, currentPage, records[] } }) - Added
chatFetchOlderFromApi()that fetches the next API page when local cache is exhausted historyFullyLoadedis now only set when the API confirms no more pages remain- Cleaned up verbose debug
console.logstatements
Full changelog: v1.0.0...v1.0.1