Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Don't double-add events to threads in tests (#9742)
Browse files Browse the repository at this point in the history
  • Loading branch information
duxovni authored Dec 12, 2022
1 parent 43f1758 commit 47cc8d6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/test-utils/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export const mkThread = ({
const thread = room.createThread(rootEvent.getId(), rootEvent, events, true);
// So that we do not have to mock the thread loading
thread.initialEventsFetched = true;
thread.addEvents(events, false);

return { thread, rootEvent, events };
};

0 comments on commit 47cc8d6

Please sign in to comment.