Skip to content

handle smaller sync responses introduced in synapse 1.38.0#321

Merged
anoadragon453 merged 3 commits into
matrix-org:masterfrom
surakin:master
Jul 22, 2021
Merged

handle smaller sync responses introduced in synapse 1.38.0#321
anoadragon453 merged 3 commits into
matrix-org:masterfrom
surakin:master

Conversation

@surakin
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread matrix_client/client.py Outdated
Comment thread matrix_client/client.py Outdated
@surakin
Copy link
Copy Markdown
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.

@surakin surakin requested a review from anoadragon453 July 21, 2021 14:29
Copy link
Copy Markdown
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