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

Handle non-message content from matrix /messages endpoint #22

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

rzadp
Copy link
Contributor

@rzadp rzadp commented Jun 5, 2024

The matrix /messages endpoint can return content different than a regular message we expect here (for example, information that someone joined the channel).

Currently it fails on Joi validation.

This handles those kinds of messages, and filters them out to preserve the expected behaviour.

@rzadp rzadp requested a review from a team as a code owner June 5, 2024 10:46
@rzadp rzadp merged commit 3d87fbc into main Jun 5, 2024
2 checks passed
@rzadp rzadp deleted the rzadp/non-messages branch June 5, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants