You've already forked matrix-js-sdk
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:
committed by
GitHub
parent
ad98706db4
commit
89df43a975
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user