Merge pull request #549 from raincons/duplications_missed_calls_fix

Fix missed calls duplications in call log.
This commit is contained in:
Tibor Kaputa 2023-03-14 10:32:50 +01:00 committed by GitHub
commit fb9f96b71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -156,9 +156,10 @@ class CallManager {
fun reject() { fun reject() {
if (call != null) { if (call != null) {
if (getState() == Call.STATE_RINGING) { val state = getState()
if (state == Call.STATE_RINGING) {
call!!.reject(false, null) call!!.reject(false, null)
} else { } else if (state != Call.STATE_DISCONNECTED && state != Call.STATE_DISCONNECTING) {
call!!.disconnect() call!!.disconnect()
} }
} }