vue-advanced-chat
vue-advanced-chat copied to clipboard
Scrolling to top in a room does not trigger fetch messages event
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.
Still have only the one log
- OS: macOS 14.4.1
- Browser: Chrome 124.0.6367.92
- Package version: 2.1.0