Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jameswagoner opened this issue Apr 30, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jameswagoner
Copy link

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 jameswagoner added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant