|
@@ -756,9 +756,9 @@ public class DcChat {
|
|
|
}
|
|
|
}
|
|
|
return nil
|
|
|
- }()
|
|
|
+ }()
|
|
|
|
|
|
- public var profileImageURL: URL? {
|
|
|
+ public var profileImageURL: URL? {
|
|
|
guard let cString = dc_chat_get_profile_image(chatPointer) else { return nil }
|
|
|
let filename = String(cString: cString)
|
|
|
dc_str_unref(cString)
|
|
@@ -1107,12 +1107,12 @@ public class DcContact {
|
|
|
return nil
|
|
|
}()
|
|
|
|
|
|
- public var profileImageURL: URL? {
|
|
|
- guard let cString = dc_contact_get_profile_image(contactPointer) else { return nil }
|
|
|
- let filename = String(cString: cString)
|
|
|
- dc_str_unref(cString)
|
|
|
- return URL(fileURLWithPath: filename, isDirectory: false)
|
|
|
- }
|
|
|
+ public var profileImageURL: URL? {
|
|
|
+ guard let cString = dc_contact_get_profile_image(contactPointer) else { return nil }
|
|
|
+ let filename = String(cString: cString)
|
|
|
+ dc_str_unref(cString)
|
|
|
+ return URL(fileURLWithPath: filename, isDirectory: false)
|
|
|
+ }
|
|
|
|
|
|
public var color: UIColor {
|
|
|
return UIColor(netHex: Int(dc_contact_get_color(contactPointer)))
|