Fixed showing of contact's chat and call dialog buttons
This commit is contained in:
@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user