Skip to content

Commit b635fa1

Browse files
committed
verifiedContactRequired is never true
1 parent 41d3245 commit b635fa1

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

deltachat-ios/Controller/AddGroupMembersViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class AddGroupMembersViewController: GroupMembersViewController {
115115
tableView.deselectRow(at: indexPath, animated: false)
116116
showNewContactController()
117117
case .memberList:
118-
didSelectContactCell(at: indexPath, verifiedContactRequired: false)
118+
didSelectContactCell(at: indexPath)
119119
}
120120
}
121121

deltachat-ios/Controller/GroupMembersViewController.swift

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class GroupMembersViewController: UITableViewController {
117117
}
118118

119119
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
120-
didSelectContactCell(at: indexPath, verifiedContactRequired: false)
120+
didSelectContactCell(at: indexPath)
121121
}
122122

123123
func updateContactCell(for indexPath: IndexPath) -> UITableViewCell {
@@ -134,7 +134,7 @@ class GroupMembersViewController: UITableViewController {
134134
}
135135

136136
// MARK: - actions
137-
func didSelectContactCell(at indexPath: IndexPath, verifiedContactRequired: Bool) {
137+
func didSelectContactCell(at indexPath: IndexPath) {
138138
let row = indexPath.row
139139
if let cell = tableView.cellForRow(at: indexPath) {
140140
tableView.deselectRow(at: indexPath, animated: true)
@@ -146,20 +146,6 @@ class GroupMembersViewController: UITableViewController {
146146
}
147147
groupMemberSelectionDelegate?.selected(contactId: contactId, selected: false)
148148
} else {
149-
if verifiedContactRequired && !dcContext.getContact(id: contactId).isVerified {
150-
let alert = UIAlertController(title: String.localized("verified_contact_required_explain"), message: nil, preferredStyle: .alert)
151-
alert.addAction(UIAlertAction(title: String.localized("learn_more"), style: .default, handler: { [weak self] _ in
152-
self?.openHelp(fragment: "#howtoe2ee")
153-
}))
154-
alert.addAction(UIAlertAction(title: String.localized("qrscan_title"), style: .default, handler: { _ in
155-
if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
156-
appDelegate.appCoordinator.presentQrCodeController()
157-
}
158-
}))
159-
alert.addAction(UIAlertAction(title: String.localized("ok"), style: .cancel, handler: nil))
160-
navigationController?.present(alert, animated: true, completion: nil)
161-
return
162-
}
163149
selectedContactIds.insert(contactId)
164150
if enableCheckmarks {
165151
cell.accessoryType = .checkmark

0 commit comments

Comments
 (0)