Browse Source

in GroupChatDetail header updates image

nayooti 5 years ago
parent
commit
2d6c8093f1
1 changed files with 6 additions and 0 deletions
  1. 6 0
      deltachat-ios/Controller/GroupChatDetailViewController.swift

+ 6 - 0
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -156,6 +156,12 @@ class GroupChatDetailViewController: UIViewController {
             title: chat.name,
             subtitle: String.localizedStringWithFormat(String.localized("n_members"), chat.contactIds.count)
         )
+        if let img = chat.profileImage {
+            groupHeader.setImage(img)
+        } else {
+            groupHeader.setBackupImage(name: chat.name, color: chat.color)
+        }
+        groupHeader.setVerified(isVerified: chat.isVerified)
     }
 
     // MARK: - actions