When the initial REST page returns empty messages, hasOlderMessages was still set to true (offset > 0), causing an infinite loop of empty load-more requests. Guard with && chatMessages.isNotEmpty(). Co-authored-by: M57 <Hy4ri@users.noreply.github.com>