Support for MSC3882 revision 1 (#10443)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
700af0954a
commit
5c0e5eb0fb
8 changed files with 114 additions and 9 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue