Posthog improvements (#2630)

This commit is contained in:
Hugh Nimmo-Smith
2024-09-23 14:35:41 +01:00
committed by GitHub
parent d14b43487a
commit ed35d6b377
3 changed files with 20 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ interface PlatformProperties {
appVersion: string;
matrixBackend: "embedded" | "jssdk";
callBackend: "livekit" | "full-mesh";
cryptoVersion?: string;
}
interface PosthogSettings {
@@ -184,6 +185,9 @@ export class PosthogAnalytics {
appVersion,
matrixBackend: widget ? "embedded" : "jssdk",
callBackend: "livekit",
cryptoVersion: widget
? undefined
: window.matrixclient?.getCrypto()?.getVersion(),
};
}