-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add support for fetching room messages #250
Labels
enhancement
New feature or request
Comments
I ended up adding an async generator with token management hidden from the public interface: const pages = client.getRoomEvents(room, "reverse", { types: ["m.reaction"] });
for await (const page of pages) {
for (const reaction of page) {
console.log(reaction);
}
} |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
There is currently no wrapper around https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3roomsroomidmessages to be able to load messages from a room.
Describe the solution you'd like
A nicely typed wrapper for that endpoint.
Describe alternatives you've considered
I'm currently doing this manually with
doRequest
but it's a bit of extra legwork that I'd rather not do:The above could serve as an inspiration for the PR.
The text was updated successfully, but these errors were encountered: