From d5447c62f7d52f339967563e919b3bfd210b3019 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Moradi Date: Wed, 15 Nov 2023 08:49:35 +0100 Subject: [PATCH 1/3] fix: hangup on call crash --- lib/src/voip/call.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/voip/call.dart b/lib/src/voip/call.dart index 5bf2a42f..e71cc42c 100644 --- a/lib/src/voip/call.dart +++ b/lib/src/voip/call.dart @@ -1200,7 +1200,9 @@ class CallSession { setCallState(CallState.kEnded); if (!isGroupCall) { - if (callId != voip.currentCID) return; + // when a call crash and this call is already terminated the currentCId is null. + // So don't return bc the hangup or reject will not proceed anymore. + if (callId != voip.currentCID && voip.currentCID != null) return; voip.currentCID = null; voip.incomingCallRoomId.removeWhere((key, value) => value == callId); } From d1bbf57b6f1437e8adbe8427e2a242058762985a Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 15 Nov 2023 14:18:48 +0100 Subject: [PATCH 2/3] fix: Set presence when loading archive --- lib/src/client.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/client.dart b/lib/src/client.dart index 23d2195c..bdf03da6 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -932,6 +932,7 @@ class Client extends MatrixApi { final syncResp = await sync( filter: '{"room":{"include_leave":true,"timeline":{"limit":10}}}', timeout: _archiveCacheBusterTimeout, + setPresence: syncPresence, ); // wrap around and hope there are not more than 30 leaves in 2 minutes :) _archiveCacheBusterTimeout = (_archiveCacheBusterTimeout + 1) % 30; From 7f32428091a7afa2337f59803ece2d654fe1a6c2 Mon Sep 17 00:00:00 2001 From: Karthikeyan S Date: Thu, 16 Nov 2023 14:08:19 +0530 Subject: [PATCH 3/3] build: release 0.22.7 --- CHANGELOG.md | 12 ++++++++++++ pubspec.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 953efe2c..d7cc8caa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## [0.22.7] - 16 November 2023 +- chore: incrementally add left rooms to archive (The one with the braid) +- chore: remove archived room on forget (#2) (Clemens-Toegel) +- chore: store states to archived rooms (#1) (Clemens-Toegel) +- chore: upgrade lints (Nicolas Werner) +- chore: use our custom reusable workflow to avoid manually configuring each publish job (td) +- fix: Code style (The one with the braid) +- fix: call hangup on timeout race condition (Karthikeyan S) +- fix: clear local database on logout even if server timesout (td) +- fix: hangup on call crash (Mohammad Reza Moradi) +- fix: stale call checker leaks memory (Nicolas Werner) + ## [0.22.6] - 23 October 2023 - fix: Do not convert linebreaks in pre blocks on markdown parsing (Krille) - refactor: Wait for room in sync until sync process and trigger cleanup call not before actually start clean up. (Krille) diff --git a/pubspec.yaml b/pubspec.yaml index c0510568..08f3196b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix description: Matrix Dart SDK -version: 0.22.6 +version: 0.22.7 homepage: https://famedly.com repository: https://github.com/famedly/matrix-dart-sdk.git