mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 23:11:12 +02:00
Increase decryption failure grace period (#12298)
This commit is contained in:
parent
71cece7641
commit
dc5803fc30
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user