1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Out of sync thread summary in main timeline (#2153)

This commit is contained in:
Germain
2022-02-04 11:57:42 +00:00
committed by GitHub
parent b07457726b
commit 7faff66006
3 changed files with 23 additions and 7 deletions

View File

@@ -77,8 +77,6 @@ export class Thread extends TypedEventEmitter<ThreadEvent> {
});
this.reEmitter = new ReEmitter(this);
this.initialiseThread(this.rootEvent);
this.reEmitter.reEmit(this.timelineSet, [
"Room.timeline",
"Room.timelineReset",
@@ -92,6 +90,7 @@ export class Thread extends TypedEventEmitter<ThreadEvent> {
} else {
this.id = rootEvent.getId();
}
this.initialiseThread(this.rootEvent);
opts?.initialEvents?.forEach(event => this.addEvent(event));