Skip to content

Commit

Permalink
Fix media detail view sender display name
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsandriesse committed Oct 17, 2019
1 parent 736f50d commit 1939ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Signal/src/ViewControllers/MediaPageViewController.swift
Expand Up @@ -669,7 +669,8 @@ class MediaPageViewController: UIPageViewController, UIPageViewControllerDataSou
private func senderName(message: TSMessage) -> String {
switch message {
case let incomingMessage as TSIncomingMessage:
return self.contactsManager.displayName(forPhoneIdentifier: incomingMessage.authorId)
let hexEncodedPublicKey = incomingMessage.authorId
return DisplayNameUtilities.getPrivateChatDisplayName(for: hexEncodedPublicKey) ?? hexEncodedPublicKey // TODO: Public chats
case is TSOutgoingMessage:
return NSLocalizedString("MEDIA_GALLERY_SENDER_NAME_YOU", comment: "Short sender label for media sent by you")
default:
Expand Down

0 comments on commit 1939ca3

Please sign in to comment.