From 48a9db031530a033ef6f44f70e1ae03ad2fba8c8 Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Thu, 9 Sep 2021 17:24:34 +0100 Subject: [PATCH] Add helper to check threads support --- src/client.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client.ts b/src/client.ts index d9c63ea39..77bc53f6f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -8489,6 +8489,13 @@ export class MatrixClient extends EventEmitter { publicise: isPublic, }); } + + /** + * @experimental + */ + public supportsExperimentalThreads(): boolean { + return this.clientOpts.experimentalThreadSupport; + } } /**