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

Element-R: pass device list change notifications into rust crypto-sdk (#3254)

This commit is contained in:
Florian Duros
2023-04-11 15:42:19 +02:00
committed by GitHub
parent 70e34ffb76
commit f71d86f005
7 changed files with 39 additions and 28 deletions

View File

@ -662,13 +662,17 @@ describe("SlidingSyncSdk", () => {
});
it("can update device lists", () => {
client!.crypto!.processDeviceLists = jest.fn();
ext.onResponse({
device_lists: {
changed: ["@alice:localhost"],
left: ["@bob:localhost"],
},
});
// TODO: more assertions?
expect(client!.crypto!.processDeviceLists).toHaveBeenCalledWith({
changed: ["@alice:localhost"],
left: ["@bob:localhost"],
});
});
it("can update OTK counts and unused fallback keys", () => {