From e9315bbb8d17172c075f905ac9129de77bf08d90 Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Tue, 19 Jul 2022 15:18:37 +0530 Subject: [PATCH 1/3] fix: set fixed time for ringer element sets lifetime to 60000 which would reject our calls automatically --- lib/src/voip/call.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/voip/call.dart b/lib/src/voip/call.dart index 4ed8765d..feeafc28 100644 --- a/lib/src/voip/call.dart +++ b/lib/src/voip/call.dart @@ -419,7 +419,7 @@ class CallSession { setCallState(CallState.kRinging); - ringingTimer = Timer(Duration(milliseconds: 30000 - lifetime), () { + ringingTimer = Timer(Duration(seconds: 30), () { if (state == CallState.kRinging) { Logs().v('[VOIP] Call invite has expired. Hanging up.'); hangupParty = CallParty.kRemote; // effectively From 25abed35c430bc0573900bd1a1aa5b3810c062d2 Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Tue, 19 Jul 2022 15:19:52 +0530 Subject: [PATCH 2/3] chore: cleanup unused imports and analyzer warnings --- test/encryption/olm_manager_test.dart | 9 +++++---- test/timeline_test.dart | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/encryption/olm_manager_test.dart b/test/encryption/olm_manager_test.dart index 28714270..514aa38b 100644 --- a/test/encryption/olm_manager_test.dart +++ b/test/encryption/olm_manager_test.dart @@ -92,7 +92,7 @@ void main() { if (!olmEnabled) return; FakeMatrixApi.calledEndpoints.clear(); - client.encryption!.olmManager + await client.encryption!.olmManager .handleDeviceOneTimeKeysCount({'signed_curve25519': 20}, null); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload'); expect( @@ -100,7 +100,7 @@ void main() { true); FakeMatrixApi.calledEndpoints.clear(); - client.encryption!.olmManager + await client.encryption!.olmManager .handleDeviceOneTimeKeysCount({'signed_curve25519': 70}, null); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload') .timeout(Duration(milliseconds: 50), onTimeout: () => ''); @@ -109,7 +109,8 @@ void main() { false); FakeMatrixApi.calledEndpoints.clear(); - client.encryption!.olmManager.handleDeviceOneTimeKeysCount(null, []); + await client.encryption!.olmManager + .handleDeviceOneTimeKeysCount(null, []); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload'); expect( FakeMatrixApi.calledEndpoints.containsKey('/client/v3/keys/upload'), @@ -117,7 +118,7 @@ void main() { // this will upload keys because we assume the key count is 0, if the server doesn't send one FakeMatrixApi.calledEndpoints.clear(); - client.encryption!.olmManager + await client.encryption!.olmManager .handleDeviceOneTimeKeysCount(null, ['signed_curve25519']); await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload'); expect( diff --git a/test/timeline_test.dart b/test/timeline_test.dart index 181aebfe..e43182b0 100644 --- a/test/timeline_test.dart +++ b/test/timeline_test.dart @@ -25,7 +25,6 @@ import 'package:matrix/src/models/timeline_chunk.dart'; import 'package:test/test.dart'; import 'package:olm/olm.dart' as olm; import 'fake_client.dart'; -import 'fake_matrix_api.dart'; void main() { group('Timeline', () { From 1cb9c8199e342939e258b7efcaea04702c68b98a Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Tue, 19 Jul 2022 15:22:12 +0530 Subject: [PATCH 3/3] chore: version bump --- CHANGELOG.md | 5 +++++ pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71fa655f..1aa4af64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.10.6] - 19th Jul 2022 +- Add powerLevelContentOverride to startDirectChat and createGroupChat (Isabella Hundstorfer) +- fix: race conditions in the SDK and its tests (Nicolas Werner) +- fix: set fixed time for ringer, should fix calls with element (Jayesh Nirve) + ## [0.10.5] - 11th Jul 2022 - fix: Cache user profile even with cache=false when there is a cache diff --git a/pubspec.yaml b/pubspec.yaml index 3ae5821d..07f0346e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix description: Matrix Dart SDK -version: 0.10.5 +version: 0.10.6 homepage: https://famedly.com repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git