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

Fix default behavior of Room.getBlacklistUnverifiedDevices (#2830)

This commit is contained in:
Faye Duxovni
2022-10-31 14:21:27 -04:00
committed by GitHub
parent 1f3ae4bde2
commit 9fa6616052
3 changed files with 17 additions and 4 deletions

View File

@@ -2926,4 +2926,15 @@ describe("Room", function() {
expect(room.getPendingEvent(ev.getId()!)).toBe(ev);
}
});
describe("getBlacklistUnverifiedDevices", () => {
it("defaults to null", () => {
expect(room.getBlacklistUnverifiedDevices()).toBeNull();
});
it("is updated by setBlacklistUnverifiedDevices", () => {
room.setBlacklistUnverifiedDevices(false);
expect(room.getBlacklistUnverifiedDevices()).toBe(false);
});
});
});