You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-10-29 14:29:29 +03:00
Increase decryption failure grace period (#12298)
This commit is contained in:
@@ -93,11 +93,11 @@ export class DecryptionFailureTracker {
|
|||||||
public static TRACK_INTERVAL_MS = 60000;
|
public static TRACK_INTERVAL_MS = 60000;
|
||||||
|
|
||||||
// Call `checkFailures` every `CHECK_INTERVAL_MS`.
|
// Call `checkFailures` every `CHECK_INTERVAL_MS`.
|
||||||
public static CHECK_INTERVAL_MS = 5000;
|
public static CHECK_INTERVAL_MS = 40000;
|
||||||
|
|
||||||
// Give events a chance to be decrypted by waiting `GRACE_PERIOD_MS` before counting
|
// Give events a chance to be decrypted by waiting `GRACE_PERIOD_MS` before counting
|
||||||
// the failure in `failureCounts`.
|
// the failure in `failureCounts`.
|
||||||
public static GRACE_PERIOD_MS = 4000;
|
public static GRACE_PERIOD_MS = 30000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new DecryptionFailureTracker.
|
* Create a new DecryptionFailureTracker.
|
||||||
|
|||||||
Reference in New Issue
Block a user