Added missing foreground service notification for outgoing call

This commit is contained in:
Sylvain Berfini 2024-08-08 19:41:15 +02:00
parent 6746e71197
commit 51d9b18c1c
2 changed files with 7 additions and 1 deletions

View file

@ -121,6 +121,12 @@ class NotificationsManager @MainThread constructor(private val context: Context)
)
showCallNotification(call, true)
}
Call.State.OutgoingInit -> {
Log.i(
"$TAG Showing outgoing call notification for [${call.remoteAddress.asStringUriOnly()}]"
)
showCallNotification(call, false)
}
Call.State.Connected -> {
if (call.dir == Call.Dir.Incoming) {
Log.i(

View file

@ -86,7 +86,7 @@ class TelecomManager @WorkerThread constructor(context: Context) {
@WorkerThread
fun onCallCreated(call: Call) {
Log.i("$TAG Call created: $call")
Log.i("$TAG Call to [${call.remoteAddress.asStringUriOnly()}] created")
val address = call.callLog.remoteAddress
val friend = coreContext.contactsManager.findContactByAddress(address)