chore: bump make and use key delays to have more buffer

This commit is contained in:
td 2024-06-07 14:55:10 +05:30
parent ab7deed01f
commit 188eb0f387
No known key found for this signature in database
GPG Key ID: 62A30523D4D6CE28
1 changed files with 2 additions and 2 deletions

View File

@ -29,13 +29,13 @@ class CallTimeouts {
// source: element call? // source: element call?
/// A delay after a member leaves before we create and publish a new key, because people /// A delay after a member leaves before we create and publish a new key, because people
/// tend to leave calls at the same time /// tend to leave calls at the same time
static const makeKeyDelay = Duration(seconds: 2); static const makeKeyDelay = Duration(seconds: 4);
/// The delay between creating and sending a new key and starting to encrypt with it. This gives others /// The delay between creating and sending a new key and starting to encrypt with it. This gives others
/// a chance to receive the new key to minimise the chance they don't get media they can't decrypt. /// a chance to receive the new key to minimise the chance they don't get media they can't decrypt.
/// The total time between a member leaving and the call switching to new keys is therefore /// The total time between a member leaving and the call switching to new keys is therefore
/// makeKeyDelay + useKeyDelay /// makeKeyDelay + useKeyDelay
static const useKeyDelay = Duration(seconds: 4); static const useKeyDelay = Duration(seconds: 6);
} }
class CallConstants { class CallConstants {