Merge pull request #549 from raincons/duplications_missed_calls_fix
Fix missed calls duplications in call log.
This commit is contained in:
commit
fb9f96b71d
|
@ -156,9 +156,10 @@ class CallManager {
|
|||
|
||||
fun reject() {
|
||||
if (call != null) {
|
||||
if (getState() == Call.STATE_RINGING) {
|
||||
val state = getState()
|
||||
if (state == Call.STATE_RINGING) {
|
||||
call!!.reject(false, null)
|
||||
} else {
|
||||
} else if (state != Call.STATE_DISCONNECTED && state != Call.STATE_DISCONNECTING) {
|
||||
call!!.disconnect()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue