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

Stop tracking threads if threads support is disabled (#8308)

This commit is contained in:
Michael Telatynski
2022-04-13 16:41:40 +01:00
committed by GitHub
parent a59f889f79
commit d151365fd7
2 changed files with 12 additions and 10 deletions

View File

@ -217,7 +217,7 @@ export async function fetchInitialEvent(
initialEvent = null;
}
if (initialEvent?.isThreadRelation) {
if (initialEvent?.isThreadRelation && client.supportsExperimentalThreads()) {
try {
const rootEventData = await client.fetchRoomEvent(roomId, initialEvent.threadRootId);
const rootEvent = new MatrixEvent(rootEventData);