mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-13 10:34:37 +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 {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user