Skip to content

v1.0.1 — Fix scroll-up chat pagination

Choose a tag to compare

@erancybersec erancybersec released this 29 Mar 20:52
· 10 commits to master since this release
50d135c

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 chatFetchMessages to 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
  • historyFullyLoaded is now only set when the API confirms no more pages remain
  • Cleaned up verbose debug console.log statements

Full changelog: v1.0.0...v1.0.1