Skip to content
Snippets Groups Projects
Commit 356f64cb authored by jakobsbode's avatar jakobsbode
Browse files

show contacts, who are not in contact book in the fast-suggestions in sendView too

parent 5ebc1525
Branches
Tags
No related merge requests found
......@@ -96,15 +96,16 @@ class AddressHandler {
}
}
if !insertedEntry {
var addrType: UIImage? = nil
if address.label.label == "_$!<Work>!$_" {
addrType = UIImage(named: "work2_white")!
}
if address.label.label == "_$!<Home>!$_" {
addrType = UIImage(named: "home2_white")!
}
if let cn = con.cnContact {
var addrType: UIImage? = nil
if address.label.label == "_$!<Work>!$_" {
addrType = UIImage(named: "work2_white")!
}
if address.label.label == "_$!<Home>!$_" {
addrType = UIImage(named: "home2_white")!
}
var color = cn.getColor()
if cn.thumbnailImageData != nil {
......@@ -117,6 +118,11 @@ class AddressHandler {
list.append(entry)
localInserted.append(address.mailAddress)
}
else {
var entry = (con.ezContact.getImageOrDefault(), con.ezContact.displayname ?? address.mailAddress, address.mailAddress, addrType, con.ezContact.getColor())
list.append(entry)
localInserted.append(address.mailAddress)
}
}
}
......@@ -136,7 +142,7 @@ class AddressHandler {
return list
}
static func proveAddress(_ s: NSString) -> Bool {
if addresses.contains((s as String).lowercased()) {
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment