From 98cab8e2bc0d10955c0c2456d96016f4e6ff057e Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Wed, 20 May 2026 09:52:14 +0300 Subject: [PATCH] Fixed showing of contact's chat and call dialog buttons --- app/src/main/kotlin/com/tutpro/baresip/ContactScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/ContactScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/ContactScreen.kt index 03b30438..26c36257 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/ContactScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/ContactScreen.kt @@ -682,7 +682,7 @@ private fun UrisSection( val ua = UserAgent.ofAor(selectedAor) // Chat Button - if (ua != null) + if (ua != null && (!ua.account.isMobile || uri.startsWith("tel:"))) IconButton( onClick = { if (ua.account.isMobile && Utils.isAirplaneModeOn(ctx)) { @@ -714,7 +714,7 @@ private fun UrisSection( } // Call Button - if (ua != null) + if (ua != null && (!ua.account.isMobile || uri.startsWith("tel:"))) IconButton( onClick = { if (ua.account.isMobile && Utils.isAirplaneModeOn(ctx)) {