Renaming
authorborja <borja@helm.cat>
Tue, 24 Jul 2018 10:47:13 +0200
changeset 56222b7639a17f5e
parent 5621 b5cb97264404
child 5623 485aee5e32e9
Renaming
pEpForiOS/UI/EmailDisplayList/PepPictureComposer.swift
pEpForiOS/UI/EmailDisplayList/ProfilePictureComposer.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplayList/PepPictureComposer.swift	Mon Jul 23 18:09:21 2018 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplayList/PepPictureComposer.swift	Tue Jul 24 10:47:13 2018 +0200
     1.3 @@ -13,16 +13,16 @@
     1.4  
     1.5      let contactImageTool = IdentityImageTool()
     1.6  
     1.7 -    func getProfilePicture(for address: Identity, completion: @escaping (UIImage?) -> ()) {
     1.8 +    func getProfilePicture(for identity: Identity, completion: @escaping (UIImage?) -> ()) {
     1.9  
    1.10 -        if let image = self.contactImageTool.cachedIdentityImage(forIdentity: address){
    1.11 +        if let image = self.contactImageTool.cachedIdentityImage(forIdentity: identity){
    1.12              completion(image)
    1.13  
    1.14  
    1.15          } else {
    1.16              DispatchQueue.global().async {
    1.17  
    1.18 -                let senderImage = self.contactImageTool.identityImage(for: address)
    1.19 +                let senderImage = self.contactImageTool.identityImage(for: identity)
    1.20                  DispatchQueue.main.async {
    1.21                      completion(senderImage)
    1.22                  }
     2.1 --- a/pEpForiOS/UI/EmailDisplayList/ProfilePictureComposer.swift	Mon Jul 23 18:09:21 2018 +0200
     2.2 +++ b/pEpForiOS/UI/EmailDisplayList/ProfilePictureComposer.swift	Tue Jul 24 10:47:13 2018 +0200
     2.3 @@ -11,7 +11,7 @@
     2.4  
     2.5  protocol ProfilePictureComposer {
     2.6  
     2.7 -    func getProfilePicture(for address: Identity, completion: @escaping (UIImage?)->())
     2.8 +    func getProfilePicture(for identity: Identity, completion: @escaping (UIImage?)->())
     2.9  
    2.10      func getSecurityBadge(for message: Message, completion: @escaping (UIImage?) ->())
    2.11