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

Add support for stable name for MSC4115 #4232

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Jun 6, 2024

MSC4115 has been accepted, so enable checking the stable name.

fixes element-hq/element-web#27515

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@uhoreg uhoreg requested review from a team as code owners June 6, 2024 19:44
@uhoreg uhoreg requested review from richvdh, BillCarsonFr and dbkr June 6, 2024 19:44
@@ -77,7 +77,6 @@ export interface IUnsigned {
"invite_room_state"?: StrippedState[];
"m.relations"?: Record<RelationType | string, any>; // No common pattern for aggregated relations
[UNSIGNED_THREAD_ID_FIELD.name]?: string;
[UNSIGNED_MEMBERSHIP_FIELD.name]?: Membership | string;
Copy link
Member Author

Choose a reason for hiding this comment

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

If I try to add both the stable and unstable property names here, the TypeScript checker complains about "A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type." Removing the properties, and using the .findIn method seems to make it happy.

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@richvdh richvdh added this pull request to the merge queue Jun 7, 2024
Merged via the queue into matrix-org:develop with commit f95954c Jun 7, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support stable identifiers for MSC4115
3 participants