Prevent app from displaying call declined toast when starting after declining icoming call through notification
This commit is contained in:
parent
f3e3b9642a
commit
566f2bbb69
1 changed files with 3 additions and 1 deletions
|
@ -197,7 +197,9 @@ class CoreContext(val context: Context, coreConfig: Config) {
|
|||
else -> R.string.call_error_unknown
|
||||
}
|
||||
callErrorMessageResourceId.value = Event(id)
|
||||
} else if (state == Call.State.End && call.errorInfo.reason == Reason.Declined) {
|
||||
} else if (state == Call.State.End &&
|
||||
call.dir == Call.Dir.Outgoing &&
|
||||
call.errorInfo.reason == Reason.Declined) {
|
||||
Log.i("[Context] Call has been declined")
|
||||
val id = R.string.call_error_declined
|
||||
callErrorMessageResourceId.value = Event(id)
|
||||
|
|
Loading…
Reference in a new issue