From 6da10bf2338f7a2f1be270c5fc43dff8cdf52e9b Mon Sep 17 00:00:00 2001 From: td Date: Fri, 18 Nov 2022 12:13:02 +0530 Subject: [PATCH 1/2] fix: handleMissedCalls on remote hangups before answer --- lib/src/voip/call.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/voip/call.dart b/lib/src/voip/call.dart index 5382ce9f..8ed6c19a 100644 --- a/lib/src/voip/call.dart +++ b/lib/src/voip/call.dart @@ -339,6 +339,7 @@ class CallSession { int toDeviceSeq = 0; int candidateSendTries = 0; bool get isGroupCall => groupCallId != null; + bool missedCall = true; final CachedStreamController onCallStreamsChanged = CachedStreamController(); @@ -1031,6 +1032,9 @@ class CallSession { onCallHangup.add(this); voip.delegate.handleCallEnded(this); fireCallEvent(CallEvent.kHangup); + if ((party == CallParty.kRemote && missedCall)) { + voip.delegate.handleMissedCall(this); + } } } @@ -1167,6 +1171,7 @@ class CallSession { localCandidates.clear(); remoteCandidates.clear(); setCallState(CallState.kConnected); + missedCall = false; } else if (state == RTCIceConnectionState.RTCIceConnectionStateFailed) { hangup(CallErrorCode.IceFailed, false); } From 431a2255719b547b62ce4a0bccf7024bc221b6a2 Mon Sep 17 00:00:00 2001 From: td Date: Fri, 18 Nov 2022 13:45:49 +0530 Subject: [PATCH 2/2] chore: version bump --- CHANGELOG.md | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c58726fd..50dc1f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.15.3] - 18th Nov 2022 +- fix: handleMissedCalls on remote hangups before answer (td) + ## [0.15.2] - 16th Nov 2022 - fix: recover from very unlikely key upload errors (Nicolas Werner) diff --git a/pubspec.yaml b/pubspec.yaml index e81687e9..4f845794 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix description: Matrix Dart SDK -version: 0.15.2 +version: 0.15.3 homepage: https://famedly.com repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git