1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

Prevent threads code from making identical simultaneous API hits (#3541)

This commit is contained in:
Michael Telatynski
2023-07-07 09:48:09 +01:00
committed by GitHub
parent 30dd28960c
commit cd7c519dc4
5 changed files with 58 additions and 120 deletions

View File

@ -157,7 +157,7 @@ export const mkThread = ({
room?.reEmitter.reEmit(evt, [MatrixEventEvent.BeforeRedaction]);
}
const thread = room.createThread(rootEvent.getId() ?? "", rootEvent, events, true);
const thread = room.createThread(rootEvent.getId() ?? "", rootEvent, [rootEvent, ...events], true);
return { thread, rootEvent, events };
};