Don't double-add events to threads in tests (#9742)

t3chguy/dedup-icons-17oct
Faye Duxovni 2022-12-12 17:43:42 -05:00 committed by GitHub
parent 43f175892a
commit 47cc8d6edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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 };
};