diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index c67933a0..411cce60 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -551,7 +551,6 @@ class BaresipService: Service() { return } - val aor = ua.account.aor Log.d(TAG, "got uaEvent $event/$aor/$callp") diff --git a/app/src/main/kotlin/com/tutpro/baresip/CallHistory.kt b/app/src/main/kotlin/com/tutpro/baresip/CallHistory.kt index 5023b500..7a31e8f6 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/CallHistory.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/CallHistory.kt @@ -33,7 +33,7 @@ class NewCallHistory(val aor: String, val peerUri: String, val direction: String } private fun aorHistorySize(aor: String): Int { - return BaresipService.callHistory.filter { it.aor == aor }.count() + return BaresipService.callHistory.count { it.aor == aor } } fun aorLatestHistory(aor: String): NewCallHistory? {