Support for MSC3882 revision 1 (#10443)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Hugh Nimmo-Smith 2023-04-06 04:06:12 -04:00 committed by GitHub
parent 700af0954a
commit 5c0e5eb0fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 114 additions and 9 deletions

View file

@ -29,6 +29,7 @@ import {
PUSHER_DEVICE_ID,
PUSHER_ENABLED,
IAuthData,
UNSTABLE_MSC3882_CAPABILITY,
} from "matrix-js-sdk/src/matrix";
import { clearAllModals } from "../../../../../test-utils";
@ -97,6 +98,7 @@ describe("<SessionManagerTab />", () => {
setPusher: jest.fn(),
setLocalNotificationSettings: jest.fn(),
getVersions: jest.fn().mockResolvedValue({}),
getCapabilities: jest.fn().mockResolvedValue({}),
});
const defaultProps = {};
@ -1375,10 +1377,14 @@ describe("<SessionManagerTab />", () => {
mockClient.getVersions.mockResolvedValue({
versions: [],
unstable_features: {
"org.matrix.msc3882": true,
"org.matrix.msc3886": true,
},
});
mockClient.getCapabilities.mockResolvedValue({
[UNSTABLE_MSC3882_CAPABILITY.name]: {
enabled: true,
},
});
});
it("renders qr code login section", async () => {