|
@@ -56,10 +56,10 @@
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:account.account rowType:XLFormRowDescriptorTypeBooleanCheck title:title];
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:account.account rowType:XLFormRowDescriptorTypeBooleanCheck title:title];
|
|
|
|
|
|
// Avatar
|
|
// Avatar
|
|
- NSString *fileNamePath = [NSString stringWithFormat:@"%@/%@-%@.png", [CCUtility getDirectoryUserData], [CCUtility getUserUrlBase:account.user urlBase:account.urlBase], account.user];
|
|
|
|
|
|
+ NSString *fileNamePath = [NSString stringWithFormat:@"%@/%@-%@-original.png", [CCUtility getDirectoryUserData], [CCUtility getUserUrlBase:account.user urlBase:account.urlBase], account.user];
|
|
UIImage *avatar = [UIImage imageWithContentsOfFile:fileNamePath];
|
|
UIImage *avatar = [UIImage imageWithContentsOfFile:fileNamePath];
|
|
if (avatar) {
|
|
if (avatar) {
|
|
- avatar = avatar;
|
|
|
|
|
|
+ avatar = [NCUtility.shared createAvatarWithImage:avatar size:40];
|
|
} else {
|
|
} else {
|
|
avatar = [[UIImage imageNamed:@"avatar"] imageWithColor:NCBrandColor.shared.gray size:40];
|
|
avatar = [[UIImage imageNamed:@"avatar"] imageWithColor:NCBrandColor.shared.gray size:40];
|
|
}
|
|
}
|