Explorar el Código

fix fallback initials to account address

cyberta hace 2 años
padre
commit
a629b394ef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {