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

Send and handle stable name for withheld codes #2232

Merged
merged 2 commits into from
Mar 11, 2022

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Mar 11, 2022

Since MSC2399 is finished FCP and it's in the spec, we can use the stable name now.


This change is marked as an internal change (Task), so will not be included in the changelog.

uhoreg added 2 commits March 11, 2022 15:32
since MSC2399 is finished FCP and it's in the spec, we can use the stable name
now
@uhoreg uhoreg added the T-Task Tasks for the team like planning label Mar 11, 2022
@uhoreg uhoreg requested a review from a team as a code owner March 11, 2022 20:47
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2022

Codecov Report

Merging #2232 (7daff1e) into develop (9fc8048) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #2232      +/-   ##
===========================================
+ Coverage    57.82%   57.87%   +0.04%     
===========================================
  Files           90       90              
  Lines        16298    16300       +2     
  Branches      3754     3755       +1     
===========================================
+ Hits          9425     9434       +9     
+ Misses        6873     6866       -7     
Impacted Files Coverage Δ
src/crypto/algorithms/megolm.ts 78.52% <100.00%> (+1.06%) ⬆️
src/crypto/index.ts 64.32% <100.00%> (+0.02%) ⬆️
src/crypto/store/localStorage-crypto-store.ts 65.73% <0.00%> (+0.56%) ⬆️

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.

lgtm - just my eternal quest to keep *Value on people's minds, though obviously not super applicable here.

Can we also get an issue to remind ourselves to remove the unstable stuff in X time?

Comment on lines -3118 to +3119
} else if (event.getType() === "org.matrix.room_key.withheld") {
} else if (event.getType() === "m.room_key.withheld"
|| event.getType() === "org.matrix.room_key.withheld") {
Copy link
Member

Choose a reason for hiding this comment

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

These sorts of checks get easier with a NamespacedValue, but considering it'd be 1 line of code to help 2 other lines, the value is questionable.

@uhoreg uhoreg merged commit 17f3920 into matrix-org:develop Mar 11, 2022
@uhoreg
Copy link
Member Author

uhoreg commented Mar 11, 2022

Can we also get an issue to remind ourselves to remove the unstable stuff in X time?

#2233

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.

3 participants