tweak: if current user reacts then their username should appear as ‘You’

pull/638/head
ryanzhao 3 years ago
parent 0a9856d49a
commit 95cd516bce

@ -122,11 +122,15 @@ final class UserCell: UITableViewCell {
.systemFont(ofSize: Values.mediumFontSize) : .systemFont(ofSize: Values.mediumFontSize) :
.boldSystemFont(ofSize: Values.mediumFontSize) .boldSystemFont(ofSize: Values.mediumFontSize)
) )
displayNameLabel.text = Profile.displayName(
for: .contact, displayNameLabel.text = (getUserHexEncodedPublicKey() == publicKey ?
id: publicKey, "MEDIA_GALLERY_SENDER_NAME_YOU".localized() :
name: profile?.name, Profile.displayName(
nickname: profile?.nickname for: .contact,
id: publicKey,
name: profile?.name,
nickname: profile?.nickname
)
) )
switch accessory { switch accessory {

Loading…
Cancel
Save