Skip to content

Commit

Permalink
show some conect in vcard message
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed May 29, 2024
1 parent 4640857 commit 3733b50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,9 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
case DC_MSG_VCARD:
cell = tableView.dequeueReusableCell(withIdentifier: "text", for: indexPath) as? TextMessageCell ?? TextMessageCell()
message.text = "👤 Contact"
if let file = message.file, let vcards = dcContext.parseVcard(path: file), let vcard = vcards.first {
message.text = "👤 " + vcard.displayName
}
default:
cell = tableView.dequeueReusableCell(withIdentifier: "text", for: indexPath) as? TextMessageCell ?? TextMessageCell()
}
Expand Down

0 comments on commit 3733b50

Please sign in to comment.