Merge branch 'td/handleMissedCalls' into 'main'

fix: handleMissedCalls on remote hangups before answer

See merge request famedly/company/frontend/famedlysdk!1171
This commit is contained in:
td 2022-11-18 08:27:30 +00:00
commit 53204fe338
3 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -339,6 +339,7 @@ class CallSession {
int toDeviceSeq = 0;
int candidateSendTries = 0;
bool get isGroupCall => groupCallId != null;
bool missedCall = true;
final CachedStreamController<CallSession> 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);
}

View File

@ -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