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:
commit
53204fe338
|
|
@ -1,3 +1,6 @@
|
||||||
|
## [0.15.3] - 18th Nov 2022
|
||||||
|
- fix: handleMissedCalls on remote hangups before answer (td)
|
||||||
|
|
||||||
## [0.15.2] - 16th Nov 2022
|
## [0.15.2] - 16th Nov 2022
|
||||||
- fix: recover from very unlikely key upload errors (Nicolas Werner)
|
- fix: recover from very unlikely key upload errors (Nicolas Werner)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -339,6 +339,7 @@ class CallSession {
|
||||||
int toDeviceSeq = 0;
|
int toDeviceSeq = 0;
|
||||||
int candidateSendTries = 0;
|
int candidateSendTries = 0;
|
||||||
bool get isGroupCall => groupCallId != null;
|
bool get isGroupCall => groupCallId != null;
|
||||||
|
bool missedCall = true;
|
||||||
|
|
||||||
final CachedStreamController<CallSession> onCallStreamsChanged =
|
final CachedStreamController<CallSession> onCallStreamsChanged =
|
||||||
CachedStreamController();
|
CachedStreamController();
|
||||||
|
|
@ -1031,6 +1032,9 @@ class CallSession {
|
||||||
onCallHangup.add(this);
|
onCallHangup.add(this);
|
||||||
voip.delegate.handleCallEnded(this);
|
voip.delegate.handleCallEnded(this);
|
||||||
fireCallEvent(CallEvent.kHangup);
|
fireCallEvent(CallEvent.kHangup);
|
||||||
|
if ((party == CallParty.kRemote && missedCall)) {
|
||||||
|
voip.delegate.handleMissedCall(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1167,6 +1171,7 @@ class CallSession {
|
||||||
localCandidates.clear();
|
localCandidates.clear();
|
||||||
remoteCandidates.clear();
|
remoteCandidates.clear();
|
||||||
setCallState(CallState.kConnected);
|
setCallState(CallState.kConnected);
|
||||||
|
missedCall = false;
|
||||||
} else if (state == RTCIceConnectionState.RTCIceConnectionStateFailed) {
|
} else if (state == RTCIceConnectionState.RTCIceConnectionStateFailed) {
|
||||||
hangup(CallErrorCode.IceFailed, false);
|
hangup(CallErrorCode.IceFailed, false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: matrix
|
name: matrix
|
||||||
description: Matrix Dart SDK
|
description: Matrix Dart SDK
|
||||||
version: 0.15.2
|
version: 0.15.3
|
||||||
homepage: https://famedly.com
|
homepage: https://famedly.com
|
||||||
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue