فهرست منبع

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 {