marinofaggiana 4 ani în urmă
părinte
comite
872b7d2d50
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      iOSClient/Main/NCCollectionCommon.swift

+ 1 - 1
iOSClient/Main/NCCollectionCommon.swift

@@ -192,7 +192,7 @@ class NCCollectionCommon: NSObject {
             } else {
                 cell.imageShared.image = NCCollectionCommonImages.cellCanShareImage
             }
-            if metadata.ownerId != appDelegate.userID {
+            if metadata.ownerId.count > 0 && metadata.ownerId != appDelegate.userID {
                 // Load avatar
                 let fileNameSource = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.user, urlBase: appDelegate.urlBase) + "-" + metadata.ownerId + ".png"
                 let fileNameSourceAvatar = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.user, urlBase: appDelegate.urlBase) + "-avatar-" + metadata.ownerId + ".png"