1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Skip processing thread roots and fetching threads list when support is disabled (#3642)

* Skip processing thread roots and fetching threads list when support is disabled

* Enable threads support in tests
This commit is contained in:
Michael Telatynski
2023-07-31 19:16:42 +01:00
committed by GitHub
parent 21b3471453
commit 88ba4fad71
3 changed files with 4 additions and 1 deletions

View File

@@ -9771,6 +9771,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* @param toStartOfTimeline - the direction
*/
public processThreadRoots(room: Room, threadedEvents: MatrixEvent[], toStartOfTimeline: boolean): void {
if (!this.supportsThreads()) return;
room.processThreadRoots(threadedEvents, toStartOfTimeline);
}