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

Support Stable Spaces #121

Merged
merged 8 commits into from
May 11, 2021
Merged

Support Stable Spaces #121

merged 8 commits into from
May 11, 2021

Conversation

Half-Shot
Copy link
Contributor

Fixes #120
Requires #115

This change breaks support for unstable spaces by removing the existing functions / classes and renaming/graduating them to the stable areas:

  • getSpace / createSpace are now part of MatrixClient
  • MSC1772Space is now called Space
  • The previous state event types are now unsupported and will not work. Developers are expected to manually update their spaces if they wish to transfer them to the new system.

This goes without saying, but care must be taken to review that this PR matches the spec outlined in https://github.com/matrix-org/matrix-doc/blob/master/proposals/1772-groups-as-rooms.md

This PR might be best reviewed file by file, as they are somewhat independent.

@Half-Shot Half-Shot marked this pull request as ready for review May 8, 2021 18:39
@Half-Shot Half-Shot changed the title Support Spaces Spec Support Stable Spaces May 8, 2021
@turt2live turt2live self-requested a review May 8, 2021 19:48
src/MatrixClient.ts Show resolved Hide resolved
src/MatrixClient.ts Outdated Show resolved Hide resolved
@turt2live turt2live merged commit 7af3b13 into turt2live:master May 11, 2021
invite: opts.invites || [],
power_level_content_override: {
ban: 100,
events_default: 50,

Choose a reason for hiding this comment

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

Currently looking into spaces support in the matrix-rust-sdk and wondered: MSC1772 states

Space-rooms should be created with a power level for events_default of 100

Is 50 used here for backwards-compatibility or was there another reason?

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.

Support stable spaces
3 participants