mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
Fix stale reconnect counts in CallEnded: cacheStartCall now resets the full cache
This commit is contained in:
@@ -50,7 +50,17 @@ export class CallEndedTracker {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public cacheStartCall(time: Date): void {
|
public cacheStartCall(time: Date): void {
|
||||||
this.cache.startTime = time;
|
this.cache = {
|
||||||
|
startTime: time,
|
||||||
|
maxParticipantsCount: 0,
|
||||||
|
reconnectingCount: 0,
|
||||||
|
reconnectingCountByReason: {
|
||||||
|
syncing: 0,
|
||||||
|
membershipConnected: 0,
|
||||||
|
certainlyConnected: 0,
|
||||||
|
livekit: 0,
|
||||||
|
},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public cacheParticipantCountChanged(count: number): void {
|
public cacheParticipantCountChanged(count: number): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user