You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Don't double-add events to threads in tests (#9742)
This commit is contained in:
@ -137,7 +137,6 @@ export const mkThread = ({
|
|||||||
const thread = room.createThread(rootEvent.getId(), rootEvent, events, true);
|
const thread = room.createThread(rootEvent.getId(), rootEvent, events, true);
|
||||||
// So that we do not have to mock the thread loading
|
// So that we do not have to mock the thread loading
|
||||||
thread.initialEventsFetched = true;
|
thread.initialEventsFetched = true;
|
||||||
thread.addEvents(events, false);
|
|
||||||
|
|
||||||
return { thread, rootEvent, events };
|
return { thread, rootEvent, events };
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user