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

View File

@ -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)) {