Преглед изворни кода

fix fallback initials to account address

cyberta пре 2 година
родитељ
комит
a629b394ef
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      DcShare/Controller/ShareViewController.swift

+ 1 - 1
DcShare/Controller/ShareViewController.swift

@@ -134,7 +134,7 @@ class ShareViewController: SLComposeServiceViewController {
         }
 
         let contact = dcContext.getContact(id: Int(DC_CONTACT_ID_SELF))
-        let title = dcContext.displayname ?? String.localized("pref_your_name")
+        let title = dcContext.displayname ?? dcContext.addr ?? ""
         initialsBadge.setName(title)
         initialsBadge.setColor(contact.color)
         if let image = contact.profileImage {