Fix corrupt thread timeline for sending events (#11260)
Events which are still in the process of being sent should *not* be included in the `EventTimeline`. Doing so means that we will attempt to render them twice, which makes react explode. Fixes https://github.com/vector-im/element-web/issues/25770
This commit is contained in:
parent
cb592dc709
commit
e959eca354
3 changed files with 26 additions and 7 deletions
|
@ -136,10 +136,6 @@ export const mkThread = ({
|
|||
|
||||
const thread = room.createThread(rootEvent.getId()!, rootEvent, events, true);
|
||||
|
||||
events.forEach((event) => {
|
||||
thread.timeline.push(event);
|
||||
});
|
||||
|
||||
// So that we do not have to mock the thread loading
|
||||
thread.initialEventsFetched = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue