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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2318 +/- ##
========================================
Coverage 59.74% 59.74%
========================================
Files 91 91
Lines 16450 16450
Branches 3797 3797
========================================
Hits 9828 9828
Misses 6622 6622
|
@@ -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'; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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 addType: [enhancement/defect/task]
to the description and I'll add them for you.