Skip to content

Commit ac53f0f

Browse files
authored
Make predecessor.event_id optional (#379)
* Make predecessor.event_id optional to support room version 12 * Document when predecessor's event_id is optional
1 parent 9d63bfd commit ac53f0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/events/CreateEvent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export interface PreviousRoomInfo {
1313

1414
/**
1515
* The last known event ID in the old room.
16+
* Optional only for room versions >=12.
1617
*/
17-
event_id: string;
18+
event_id?: string;
1819
}
1920

2021
/**

0 commit comments

Comments
 (0)