Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-accept module doesn't mark DMs as DMs for the 'auto-accepting' user
4 participants