1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Update stale comment (#4080)

And remove line that set it for it to just get overwritten
This commit is contained in:
David Baker
2024-02-21 19:01:16 +00:00
committed by GitHub
parent 91bde6afa1
commit 4826868a8f

View File

@@ -198,8 +198,8 @@ export class Thread extends ReadReceipt<ThreadEmittedEvents, ThreadEventHandlerM
};
private async fetchRootEvent(): Promise<void> {
this.rootEvent = this.room.findEventById(this.id);
// If the rootEvent does not exist in the local stores, then fetch it from the server.
// Always fetch the root event, even if we already have it, so we can get the latest
// state (via unsigned).
try {
const eventData = await this.client.fetchRoomEvent(this.roomId, this.id);
const mapper = this.client.getEventMapper();