From ca5b3ddc0df2adf48ba548b9098a1aab06b9984d Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:50:29 +0400 Subject: [PATCH] ios, android: hide force renegotiate encryption button (#2736) --- apps/ios/Shared/Views/Chat/ChatInfoView.swift | 5 +++-- apps/ios/Shared/Views/Chat/Group/GroupMemberInfoView.swift | 5 +++-- .../main/java/chat/simplex/app/views/chat/ChatInfoView.kt | 5 +++-- .../chat/simplex/app/views/chat/group/GroupMemberInfoView.kt | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/ChatInfoView.swift b/apps/ios/Shared/Views/Chat/ChatInfoView.swift index 0814d88e37..5bbc64e165 100644 --- a/apps/ios/Shared/Views/Chat/ChatInfoView.swift +++ b/apps/ios/Shared/Views/Chat/ChatInfoView.swift @@ -154,9 +154,10 @@ struct ChatInfoView: View { if let connStats = connectionStats, connStats.ratchetSyncAllowed { synchronizeConnectionButton() - } else if developerTools { - synchronizeConnectionButtonForce() } +// } else if developerTools { +// synchronizeConnectionButtonForce() +// } } if let contactLink = contact.contactLink { diff --git a/apps/ios/Shared/Views/Chat/Group/GroupMemberInfoView.swift b/apps/ios/Shared/Views/Chat/Group/GroupMemberInfoView.swift index f148c5d1ca..37e00863fe 100644 --- a/apps/ios/Shared/Views/Chat/Group/GroupMemberInfoView.swift +++ b/apps/ios/Shared/Views/Chat/Group/GroupMemberInfoView.swift @@ -82,9 +82,10 @@ struct GroupMemberInfoView: View { if let connStats = connectionStats, connStats.ratchetSyncAllowed { synchronizeConnectionButton() - } else if developerTools { - synchronizeConnectionButtonForce() } +// } else if developerTools { +// synchronizeConnectionButtonForce() +// } } } diff --git a/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/ChatInfoView.kt b/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/ChatInfoView.kt index 4cfd721958..8e4fdb5337 100644 --- a/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/ChatInfoView.kt +++ b/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/ChatInfoView.kt @@ -286,9 +286,10 @@ fun ChatInfoLayout( SendReceiptsOption(currentUser, sendReceipts, setSendReceipts) if (cStats != null && cStats.ratchetSyncAllowed) { SynchronizeConnectionButton(syncContactConnection) - } else if (developerTools) { - SynchronizeConnectionButtonForce(syncContactConnectionForce) } +// } else if (developerTools) { +// SynchronizeConnectionButtonForce(syncContactConnectionForce) +// } } SectionDividerSpaced() diff --git a/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/group/GroupMemberInfoView.kt b/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/group/GroupMemberInfoView.kt index b1b69e40a0..df36cf9aff 100644 --- a/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/group/GroupMemberInfoView.kt +++ b/apps/multiplatform/android/src/main/java/chat/simplex/app/views/chat/group/GroupMemberInfoView.kt @@ -253,9 +253,10 @@ fun GroupMemberInfoLayout( } if (cStats != null && cStats.ratchetSyncAllowed) { SynchronizeConnectionButton(syncMemberConnection) - } else if (developerTools) { - SynchronizeConnectionButtonForce(syncMemberConnectionForce) } +// } else if (developerTools) { +// SynchronizeConnectionButtonForce(syncMemberConnectionForce) +// } } SectionDividerSpaced() }