1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

Fix 3pid invite acceptance not working due to mxid being sent in body (#2907)

This commit is contained in:
Michael Telatynski
2022-11-25 09:22:10 +00:00
committed by GitHub
parent 77d6def1cc
commit 007b7dd242
2 changed files with 6 additions and 5 deletions

View File

@@ -173,7 +173,9 @@ describe("MatrixClient", function() {
signatures: {},
};
httpBackend!.when("POST", inviteSignUrl).respond(200, signature);
httpBackend!.when("POST", inviteSignUrl).check(request => {
expect(request.queryParams?.mxid).toEqual(client!.getUserId());
}).respond(200, signature);
httpBackend!.when("POST", "/join/" + encodeURIComponent(roomId)).check(request => {
expect(request.data.third_party_signed).toEqual(signature);
}).respond(200, { room_id: roomId });