Skip to content

Commit

Permalink
Fix condition to hide email (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Aug 26, 2024
1 parent d4cae6f commit d461bfa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions deltachat-ios/View/ContactCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,7 @@ class ContactCell: UITableViewCell {
case .contact(let contactData):
let contact = cellViewModel.dcContext.getContact(id: contactData.contactId)
titleLabel.attributedText = cellViewModel.title.boldAt(indexes: cellViewModel.titleHighlightIndexes, fontSize: titleLabel.font.pointSize)

if let chatId = contactData.chatId {
let chat = cellViewModel.dcContext.getChat(chatId: chatId)
if chat.isProtected {
subtitleLabel.isHidden = true
}
}
subtitleLabel.isHidden = contact.isVerified

if let profileImage = contact.profileImage {
avatar.setImage(profileImage)
Expand Down

0 comments on commit d461bfa

Please sign in to comment.