1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Fix check supportExperimentalThreads (#2017)

This commit is contained in:
Germain
2021-11-10 10:54:13 +00:00
committed by GitHub
parent b07d44a6c0
commit ad8a93dde8

View File

@@ -8575,7 +8575,7 @@ export class MatrixClient extends EventEmitter {
const ROOM = 0;
const THREAD = 1;
const threadRoots = new Set<string>();
if (this.supportsExperimentalThreads) {
if (this.supportsExperimentalThreads()) {
return events.reduce((memo, event: MatrixEvent) => {
const room = this.getRoom(event.getRoomId());
// An event should live in the thread timeline if