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

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

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

Loading…
Cancel
Save