vue-advanced-chat icon indicating copy to clipboard operation
vue-advanced-chat copied to clipboard

Scrolling to top in a room does not trigger fetch messages event

Open jameswagoner opened this issue 9 months ago • 0 comments

When first entering the room, fetch message event fires. However, when I scroll to the top, event fails to fire.

<vue-advanced-chat
  ...
  @fetch-messages="fetchMessages($event.detail[0])"
></vue-advanced-chat>
const fetchMessages = ({ room, options = {} }) => {
  console.log(room, options);
};

Console log gives me room and options properties. options contains { reset: true } indicating it is the first load of the room per the documentation but nothing when I scroll to the top to in an attempt to load more messages.

image

Still have only the one log

image

  • OS: macOS 14.4.1
  • Browser: Chrome 124.0.6367.92
  • Package version: 2.1.0

jameswagoner avatar Apr 30 '24 15:04 jameswagoner