Fix race conditions around threads (#8448)
This commit is contained in:
parent
1aaaad2f32
commit
f29ef04751
8 changed files with 37 additions and 67 deletions
|
@ -92,5 +92,5 @@ export const makeThreadEvents = ({
|
|||
|
||||
export const makeThread = (client: MatrixClient, room: Room, props: MakeThreadEventsProps): Thread => {
|
||||
const { rootEvent, events } = makeThreadEvents(props);
|
||||
return new Thread(rootEvent, { initialEvents: events, room, client });
|
||||
return new Thread(rootEvent.getId(), rootEvent, { initialEvents: events, room, client });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue