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

Mark room versions 7, 8, and 9 as safe #2318

Merged
merged 2 commits into from May 2, 2022

Conversation

aaronraimist
Copy link
Contributor

@aaronraimist aaronraimist commented Apr 25, 2022

Workaround for element-hq/element-web#20166 element-hq/element-web#11820

Signed-off-by: Aaron Raimist aaron@raim.ist


This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2022

Codecov Report

Merging #2318 (4128c5a) into develop (1bb8210) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #2318   +/-   ##
========================================
  Coverage    59.74%   59.74%           
========================================
  Files           91       91           
  Lines        16450    16450           
  Branches      3797     3797           
========================================
  Hits          9828     9828           
  Misses        6622     6622           
Impacted Files Coverage Δ
src/models/room.ts 57.21% <100.00%> (ø)

src/models/room.ts Outdated Show resolved Hide resolved
@@ -55,8 +55,8 @@ import { TypedEventEmitter } from "./typed-event-emitter";
// room versions which are considered okay for people to run without being asked
// to upgrade (ie: "stable"). Eventually, we should remove these when all homeservers
// return an m.room_versions capability.
const KNOWN_SAFE_ROOM_VERSION = '6';
const SAFE_ROOM_VERSIONS = ['1', '2', '3', '4', '5', '6'];
const KNOWN_SAFE_ROOM_VERSION = '9';
Copy link
Member

Choose a reason for hiding this comment

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

In practice, KNOWN_SAFE_ROOM_VERSION should be the same as the common default room version

Hmm @turt2live you sure about this given the spec is still saying default to 6

Copy link
Member

Choose a reason for hiding this comment

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

Just missing spec at the moment: matrix-org/matrix-spec-proposals#3739

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 6137afe into matrix-org:develop May 2, 2022
@aaronraimist aaronraimist deleted the patch-1 branch May 2, 2022 01:44
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

4 participants