1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Use updated createThread method (#7670)

This commit is contained in:
Germain
2022-02-01 08:58:45 +00:00
committed by GitHub
parent 3e1a5f7021
commit 0e36f91d76
4 changed files with 43 additions and 10 deletions

View File

@ -290,7 +290,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);
} catch (e) {
logger.warn("Could not find root event: " + initialEvent.threadRootId);
}