marinofaggiana hace 3 años
padre
commit
253196ce16
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      iOSClient/Settings/CCManageAccount.m

+ 2 - 2
iOSClient/Settings/CCManageAccount.m

@@ -56,10 +56,10 @@
         row = [XLFormRowDescriptor formRowDescriptorWithTag:account.account rowType:XLFormRowDescriptorTypeBooleanCheck title:title];
         
         // 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];
         if (avatar) {
-            avatar = avatar;
+            avatar = [NCUtility.shared createAvatarWithImage:avatar size:40];
         } else {
             avatar = [[UIImage imageNamed:@"avatar"] imageWithColor:NCBrandColor.shared.gray size:40];
         }