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

Set the DM flag on new DMs #6

Merged
merged 9 commits into from
Apr 27, 2022
Merged

Set the DM flag on new DMs #6

merged 9 commits into from
Apr 27, 2022

Conversation

reivilibre
Copy link
Contributor

@reivilibre reivilibre commented Apr 6, 2022

Fixes #5.

Requires the module API added in matrix-org/synapse#12391 (likely to land in v1.57.0).

This work is sponsored. It should be possible to review commit-by-commit.

  • Before merge, need to revert the CI ONLY commit.

@reivilibre reivilibre force-pushed the rei/set_dm_flag branch 2 times, most recently from b06b2b4 to 5871b09 Compare April 6, 2022 13:33
@dklimpel dklimpel mentioned this pull request Apr 6, 2022
@reivilibre reivilibre marked this pull request as ready for review April 7, 2022 10:51
@reivilibre reivilibre requested a review from a team as a code owner April 7, 2022 10:51
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

LGTM, modulo requiring unreleased changes to synapse.

setup.cfg Outdated
@@ -17,7 +17,7 @@ python_requires = >= 3.7
[options.extras_require]
dev =
# for tests
matrix-synapse
matrix-synapse @ git+https://github.com/matrix-org/synapse.git@rei/modapi_acc_data
Copy link
Member

Choose a reason for hiding this comment

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

Should we be specifying a minimum bound of Synapse somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I'll add that in

Choose a reason for hiding this comment

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

Is there a reason we're specifying the version bound as an optional dev-only extra rather than as a hard requirement on the package?

Copy link
Contributor

@babolivier babolivier May 3, 2022

Choose a reason for hiding this comment

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

I think this version bound is purely so linters pass (since I assume the module relies on changes that weren't already merged into develop or released in a stable version of Synapse at the time).

@reivilibre reivilibre merged commit 674dfa5 into main Apr 27, 2022
@reivilibre reivilibre deleted the rei/set_dm_flag branch April 27, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet