Skip to content

Refactor list creation with MSC3784 support.#386

Merged
Gnuxie merged 1 commit intomainfrom
gnuxie/list-creation
Oct 19, 2022
Merged

Refactor list creation with MSC3784 support.#386
Gnuxie merged 1 commit intomainfrom
gnuxie/list-creation

Conversation

@Gnuxie
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread src/models/PolicyList.ts
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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 force-pushed the gnuxie/list-creation branch from b4e4790 to 18d2f5f Compare October 19, 2022 09:23
@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.

3 participants