Merge pull request #1845 from famedly/td/bumpRTCKeyDelays

chore: bump make and use key delays to have more buffer
This commit is contained in:
td 2024-06-10 18:45:06 +05:30 committed by GitHub
commit 3cf5664cf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -29,13 +29,13 @@ class CallTimeouts {
// source: element call?
/// A delay after a member leaves before we create and publish a new key, because people
/// 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
/// 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
/// makeKeyDelay + useKeyDelay
static const useKeyDelay = Duration(seconds: 4);
static const useKeyDelay = Duration(seconds: 6);
}
class CallConstants {