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

Base support for MSC3847: Ignore invites with policy rooms #2626

Merged
merged 6 commits into from
Sep 7, 2022

Conversation

Yoric
Copy link
Contributor

@Yoric Yoric commented Aug 30, 2022

This is a second take on the matrix-js-sdk-level machinery needed to be able to ignore invites, this time based on MSC3847.

The intention is that decisions on whether/how to display ignored invites is left in the hands of matrix-react-sdk.

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Type: enhancement


Here's what your changelog entry will look like:

✨ Features

  • Base support for MSC3847: Ignore invites with policy rooms (#2626). Contributed by @Yoric.

@Yoric Yoric requested a review from a team as a code owner August 30, 2022 13:44
@Yoric Yoric force-pushed the yoric/ignore-invites-3847 branch 2 times, most recently from 7de2554 to 12e9077 Compare August 30, 2022 15:34
Copy link
Contributor

@duxovni duxovni left a comment

Choose a reason for hiding this comment

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

Looks reasonable overall; should this baseline support also include a method for adding rooms to the sources list?

src/models/invites-ignorer.ts Outdated Show resolved Hide resolved
@Yoric
Copy link
Contributor Author

Yoric commented Aug 31, 2022

Looks reasonable overall; should this baseline support also include a method for adding rooms to the sources list?

I can do that. I don't see any scenario for using this method in the near future, except perhaps for testing, though.

@Yoric
Copy link
Contributor Author

Yoric commented Aug 31, 2022

I took the opportunity to add a few more tests.

@Yoric
Copy link
Contributor Author

Yoric commented Sep 2, 2022

Are we waiting for any further reviews or can this be merged?

src/models/invites-ignorer.ts Outdated Show resolved Hide resolved
spec/unit/matrix-client.spec.ts Show resolved Hide resolved
spec/unit/matrix-client.spec.ts Outdated Show resolved Hide resolved
@Yoric Yoric requested a review from turt2live September 5, 2022 16:50
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

Thanks!

@turt2live turt2live merged commit 917e8c0 into matrix-org:develop Sep 7, 2022
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Sep 28, 2022
* Add a property aggregating all names of a NamespacedValue ([\matrix-org#2656](matrix-org#2656)).
* Implementation of MSC3824 to add action= param on SSO login ([\matrix-org#2398](matrix-org#2398)). Contributed by @hughns.
* Add invited_count and joined_count to sliding sync room responses. ([\matrix-org#2628](matrix-org#2628)).
* Base support for MSC3847: Ignore invites with policy rooms ([\matrix-org#2626](matrix-org#2626)). Contributed by @Yoric.
* Fix handling of remote echoes doubling up ([\matrix-org#2639](matrix-org#2639)). Fixes matrix-org#2618.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants