From 019d36e0d733349ba87d1d9985988f809495802e Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 12 Jan 2026 22:33:47 +0200 Subject: [PATCH] Fixed call order --- app/src/main/kotlin/com/tutpro/baresip/Call.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Call.kt b/app/src/main/kotlin/com/tutpro/baresip/Call.kt index 59d9f966..31820138 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Call.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Call.kt @@ -42,7 +42,7 @@ class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir: Str val focusDtmf: MutableState = mutableStateOf(false) fun add() { - BaresipService.calls.add(0, this) + BaresipService.calls.add(this) } fun remove() { @@ -133,7 +133,7 @@ class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir: Str } fun call(status: String): Call? { - for (c in BaresipService.calls.reversed()) + for (c in BaresipService.calls) if (c.status.value == status) return c return null }