Fix missing threads in thread list (#8011)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Germain 2022-03-10 16:44:50 +00:00 committed by GitHub
parent 3f67a389c1
commit 246d6757ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 25 deletions

View file

@ -308,7 +308,7 @@ export async function fetchInitialEvent(
const rootEventData = await client.fetchRoomEvent(roomId, initialEvent.threadRootId);
const rootEvent = new MatrixEvent(rootEventData);
const room = client.getRoom(roomId);
room.createThread(rootEvent);
room.createThread(rootEvent, [rootEvent], true);
} catch (e) {
logger.warn("Could not find root event: " + initialEvent.threadRootId);
}