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 smaller sync responses introduced in synapse 1.38.0 #321

Merged
merged 3 commits into from
Jul 22, 2021
Merged

handle smaller sync responses introduced in synapse 1.38.0 #321

merged 3 commits into from
Jul 22, 2021

Conversation

surakin
Copy link
Contributor

@surakin surakin commented Jul 18, 2021

Synapse 1.38.0 introduced smaller sync responses (matrix-org/synapse#10214) by removing empty fields, but this library did not handle it correctly.
This broke the Home Assistant matrix integration, for example.

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks functional, just a couple stylistic notes.

Also note that this library is no longer actively maintained. You may consider switching to another Python library for client actions, such as https://github.com/poljar/matrix-nio.

matrix_client/client.py Outdated Show resolved Hide resolved
matrix_client/client.py Outdated Show resolved Hide resolved
@surakin
Copy link
Contributor Author

surakin commented Jul 21, 2021

This looks functional, just a couple stylistic notes.

Also note that this library is no longer actively maintained. You may consider switching to another Python library for client actions, such as https://github.com/poljar/matrix-nio.

I know :) I only wanted to keep the home assistant matrix integration functional. They should switch to matrix-nio anyway.

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making those changes, and yes that's understandable!

@anoadragon453 anoadragon453 merged commit 82fb7d7 into matrix-org:master Jul 22, 2021
axkg added a commit to axkg/teslausb that referenced this pull request Jul 26, 2021
Latest synpase update broke the legacy SDK:
matrix-org/matrix-python-sdk#321

Even though the fix is merged, PyPI package is unlikey to update soon as
SDK is no longer maintained, so it is now replaced with matrix-nio.
marcone pushed a commit to marcone/teslausb that referenced this pull request Jul 30, 2021
Latest synapse update broke the legacy SDK:
matrix-org/matrix-python-sdk#321

Even though the fix is merged, PyPI package is unlikey to update soon as
SDK is no longer maintained, so it is now replaced with matrix-nio.
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