Skip to content

Commit

Permalink
Merge pull request #1845 from famedly/td/bumpRTCKeyDelays
Browse files Browse the repository at this point in the history
chore: bump make and use key delays to have more buffer
  • Loading branch information
td-famedly authored Jun 10, 2024
2 parents fdabed8 + ef102c4 commit 3cf5664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/voip/utils/voip_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3cf5664

Please sign in to comment.