From 188eb0f387c61147fbcd6a37f5794cb901176c4c Mon Sep 17 00:00:00 2001 From: td Date: Fri, 7 Jun 2024 14:55:10 +0530 Subject: [PATCH] chore: bump make and use key delays to have more buffer --- lib/src/voip/utils/voip_constants.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/voip/utils/voip_constants.dart b/lib/src/voip/utils/voip_constants.dart index f093902c..f003c0e6 100644 --- a/lib/src/voip/utils/voip_constants.dart +++ b/lib/src/voip/utils/voip_constants.dart @@ -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 {