File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,19 @@ public final class CommonContact: Identifiable {
67
67
fullName = correspondent. name. isEmpty ? correspondent. email : correspondent. name
68
68
color = UIColor . backgroundColor ( from: email. hash, with: UIConstants . avatarColors)
69
69
let transactionable = contextMailboxManager. contactManager
70
- let contact = contextMailboxManager. contactManager. getContact ( for: correspondent, transactionable: transactionable)
70
+ let contactImageRequest = contextMailboxManager. contactManager. getContact (
71
+ for: correspondent,
72
+ transactionable: transactionable
73
+ ) ? . avatarImageRequest
74
+
71
75
if let associatedBimi,
72
- contact == nil && associatedBimi. isCertified && !associatedBimi. svgContent. isEmpty {
76
+ contactImageRequest == nil && associatedBimi. isCertified && !associatedBimi. svgContent. isEmpty {
73
77
avatarImageRequest = AvatarImageRequest (
74
78
imageRequest: ImageRequest ( url: Endpoint . bimiSvgUrl ( bimi: associatedBimi) . url) ,
75
79
shouldAuthenticate: true
76
80
)
77
81
} else {
78
- avatarImageRequest = AvatarImageRequest ( imageRequest: contact ? . avatarImageRequest , shouldAuthenticate: true )
82
+ avatarImageRequest = AvatarImageRequest ( imageRequest: contactImageRequest , shouldAuthenticate: true )
79
83
}
80
84
}
81
85
}
You can’t perform that action at this time.
0 commit comments