1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +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 ROOM = 0;
const THREAD = 1; const THREAD = 1;
const threadRoots = new Set<string>(); const threadRoots = new Set<string>();
if (this.supportsExperimentalThreads) { if (this.supportsExperimentalThreads()) {
return events.reduce((memo, event: MatrixEvent) => { return events.reduce((memo, event: MatrixEvent) => {
const room = this.getRoom(event.getRoomId()); const room = this.getRoom(event.getRoomId());
// An event should live in the thread timeline if // An event should live in the thread timeline if