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 for MSC2457 logout_devices param for setPassword() #2285

Merged
merged 6 commits into from
Apr 9, 2022

Conversation

hughns
Copy link
Member

@hughns hughns commented Apr 8, 2022


Here's what your changelog entry will look like:

✨ Features

@hughns hughns requested a review from a team as a code owner April 8, 2022 09:57
@codecov-commenter
Copy link

Codecov Report

Merging #2285 (7f978be) into develop (781fdf4) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #2285      +/-   ##
===========================================
- Coverage    59.39%   59.38%   -0.02%     
===========================================
  Files           91       91              
  Lines        16360    16364       +4     
  Branches      3771     3773       +2     
===========================================
  Hits          9717     9717              
- Misses        6643     6647       +4     
Impacted Files Coverage Δ
src/client.ts 37.45% <0.00%> (-0.07%) ⬇️

src/client.ts Outdated Show resolved Hide resolved
src/client.ts Outdated Show resolved Hide resolved
@hughns hughns requested a review from t3chguy April 8, 2022 16:11
@t3chguy
Copy link
Member

t3chguy commented Apr 8, 2022

Optional: could we get test coverage over the backwards compatible signature?

@hughns
Copy link
Member Author

hughns commented Apr 8, 2022

@t3chguy i added tests trying to follow existing patterns.

In doing so I noted that it would be better to make the default behaviour actually mimic the current behaviour. Specifically making it so that if the existing setPassword signature is used then the logout_devices param is not specified in the POST request.

@hughns hughns requested a review from t3chguy April 8, 2022 17:23
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

:shipit:

@hughns hughns merged commit 5937e6a into develop Apr 9, 2022
@hughns hughns deleted the hughns/logout-devices-control branch April 9, 2022 13:07
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Apr 30, 2022
* Add MatrixClient.doesServerSupportLogoutDevices() for MSC2457 ([\matrix-org#2297](matrix-org#2297)).
* Live location sharing - expose room liveBeaconIds ([\matrix-org#2296](matrix-org#2296)).
* Support for MSC2457 logout_devices param for setPassword() ([\matrix-org#2285](matrix-org#2285)).
* Stabilise token authenticated registration support ([\matrix-org#2181](matrix-org#2181)). Contributed by @govynnus.
* Live location sharing - Aggregate beacon locations on beacons ([\matrix-org#2268](matrix-org#2268)).
* Prevent duplicated re-emitter setups in event-mapper ([\matrix-org#2293](matrix-org#2293)).
* Make self membership less prone to races ([\matrix-org#2277](matrix-org#2277)). Fixes element-hq/element-web#21661.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants