ios, android: hide force renegotiate encryption button (#2736)

This commit is contained in:
spaced4ndy
2023-07-20 15:50:29 +04:00
committed by GitHub
parent 4e2acbf456
commit ca5b3ddc0d
4 changed files with 12 additions and 8 deletions

View File

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

View File

@@ -82,9 +82,10 @@ struct GroupMemberInfoView: View {
if let connStats = connectionStats,
connStats.ratchetSyncAllowed {
synchronizeConnectionButton()
} else if developerTools {
synchronizeConnectionButtonForce()
}
// } else if developerTools {
// synchronizeConnectionButtonForce()
// }
}
}

View File

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

View File

@@ -253,9 +253,10 @@ fun GroupMemberInfoLayout(
}
if (cStats != null && cStats.ratchetSyncAllowed) {
SynchronizeConnectionButton(syncMemberConnection)
} else if (developerTools) {
SynchronizeConnectionButtonForce(syncMemberConnectionForce)
}
// } else if (developerTools) {
// SynchronizeConnectionButtonForce(syncMemberConnectionForce)
// }
}
SectionDividerSpaced()
}