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

Refactor list creation with MSC3784 support. #386

Merged
merged 1 commit into from
Oct 19, 2022
Merged

Conversation

Gnuxie
Copy link
Contributor

@Gnuxie Gnuxie commented Oct 17, 2022

matrix-org/matrix-spec-proposals#3784

This was extracted from the appservice mjolnir work to reduce review burden.

The idea behind supporting MSC3784 is that clients can start to provide UX for editing policy lists directly rather than going through Mjolinr commands.

@Gnuxie Gnuxie requested a review from Yoric October 17, 2022 18:08
Copy link
Contributor

@Yoric Yoric left a comment

Choose a reason for hiding this comment

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

Much nicer, thanks!

@@ -86,6 +86,10 @@ class PolicyList extends EventEmitter {
// Events that we have already informed the batcher about, that we haven't loaded from the room state yet.
private batchedEvents = new Set<string /* event id */>();

/** MSC3784 support. Please note that policy lists predate room types. So there will be lists in the wild without this type. */
public static readonly ROOM_TYPE = "support.feline.policy.lists.msc.v1";
Copy link
Contributor

Choose a reason for hiding this comment

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

support.feline.policy.lists.msc.v1? I assume that this was created for this occasion? We typically use org.matrix.mjolnir.XXX for Mjölnir-specific prefixes, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't my MSC, so we don't have a choice in the matter

Copy link

@FSG-Cat FSG-Cat Oct 19, 2022

Choose a reason for hiding this comment

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

It's the unstable room type for MSC3784.

Edit: And I happen to be the author that picked the unstable identifier.

matrix-org/matrix-spec-proposals#3784

This was extracted from the appservice mjolnir work to reduce review burden.
@Gnuxie Gnuxie merged commit da08432 into main Oct 19, 2022
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.

None yet

3 participants