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)
|
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user