core: don't keep connection of the merged contact (#2507)

This commit is contained in:
spaced4ndy
2023-05-25 20:54:31 +04:00
committed by GitHub
parent f9f34911b1
commit 6093219ce9
8 changed files with 77 additions and 49 deletions

View File

@@ -131,6 +131,14 @@ struct ChatInfoView: View {
}
}
if developerTools {
Section("Contact") {
let connLevel = contact.activeConn.connLevel
let connLevelDesc = connLevel == 0 ? NSLocalizedString("direct", comment: "connection level description") : String.localizedStringWithFormat(NSLocalizedString("indirect (%d)", comment: "connection level description"), connLevel)
infoRow("Connection", connLevelDesc)
}
}
Section("Servers") {
networkStatusRow()
.onTapGesture {