mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
Update src/analytics/PosthogEvents.ts
Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
@@ -223,7 +223,7 @@ export class CallConnectDurationTracker {
|
|||||||
public track(options = { log: false }): void {
|
public track(options = { log: false }): void {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const totalDuration = now - this.connectStart;
|
const totalDuration = now - this.connectStart;
|
||||||
const websockedDuration = this.websocketConnected - this.connectStart;
|
const websocketDuration = this.websocketConnected - this.connectStart;
|
||||||
const peerConnectionDuration = now - this.websocketConnected;
|
const peerConnectionDuration = now - this.websocketConnected;
|
||||||
PosthogAnalytics.instance.trackEvent<CallConnectDuration>({
|
PosthogAnalytics.instance.trackEvent<CallConnectDuration>({
|
||||||
eventName: "CallConnectDuration",
|
eventName: "CallConnectDuration",
|
||||||
|
|||||||
Reference in New Issue
Block a user