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

Fix predecessor types, nowhere does the spec say it can be null (#3159)

* Fix predecessor types, nowhere does the spec say it can be `null`

* Iterate

* Update comment

* update test
This commit is contained in:
Michael Telatynski
2023-02-16 09:38:36 +00:00
committed by GitHub
parent ad98706db4
commit 89df43a975
3 changed files with 21 additions and 16 deletions

View File

@ -3392,7 +3392,7 @@ describe("Room", function () {
const useMsc3946 = true;
expect(room.findPredecessor(useMsc3946)).toEqual({
roomId: "otherreplacedroomid",
eventId: null, // m.predecessor did not include an event_id
eventId: undefined, // m.predecessor did not include an event_id
});
});