Allow for null MatrixClient

This commit is contained in:
Hugh Nimmo-Smith 2024-09-02 16:48:24 +01:00
parent 9987a45475
commit a33b40ea02

View File

@ -196,7 +196,7 @@ export class PosthogAnalytics {
callBackend: "livekit",
cryptoVersion: widget
? undefined
: window.matrixclient.getCrypto()?.getVersion(),
: window.matrixclient?.getCrypto()?.getVersion(),
};
}