Fixed showing of contact's chat and call dialog buttons

This commit is contained in:
Juha Heinanen
2026-05-20 09:52:14 +03:00
parent 65e0a39d6e
commit 98cab8e2bc
@@ -682,7 +682,7 @@ private fun UrisSection(
val ua = UserAgent.ofAor(selectedAor) val ua = UserAgent.ofAor(selectedAor)
// Chat Button // Chat Button
if (ua != null) if (ua != null && (!ua.account.isMobile || uri.startsWith("tel:")))
IconButton( IconButton(
onClick = { onClick = {
if (ua.account.isMobile && Utils.isAirplaneModeOn(ctx)) { if (ua.account.isMobile && Utils.isAirplaneModeOn(ctx)) {
@@ -714,7 +714,7 @@ private fun UrisSection(
} }
// Call Button // Call Button
if (ua != null) if (ua != null && (!ua.account.isMobile || uri.startsWith("tel:")))
IconButton( IconButton(
onClick = { onClick = {
if (ua.account.isMobile && Utils.isAirplaneModeOn(ctx)) { if (ua.account.isMobile && Utils.isAirplaneModeOn(ctx)) {