Skip to content

Commit

Permalink
Allow for null MatrixClient
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Sep 2, 2024
1 parent 497b38b commit 4c68122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analytics/PosthogAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class PosthogAnalytics {
callBackend: "livekit",
cryptoVersion: widget
? undefined
: window.matrixclient.getCrypto()?.getVersion(),
: window.matrixclient?.getCrypto()?.getVersion(),

Check warning on line 199 in src/analytics/PosthogAnalytics.ts

View check run for this annotation

Codecov / codecov/patch

src/analytics/PosthogAnalytics.ts#L197-L199

Added lines #L197 - L199 were not covered by tests
};
}

Expand Down

0 comments on commit 4c68122

Please sign in to comment.