Explorar el Código

update share view

marinofaggiana hace 6 años
padre
commit
7efc14e7a3
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      iOSClient/Share/CCShareOC.m

+ 4 - 1
iOSClient/Share/CCShareOC.m

@@ -240,8 +240,11 @@
         
         if (errorCode == 0) {
             
-            for (OCSharedDto *item in items)
+            [appDelegate.sharesID removeAllObjects];
+
+            for (OCSharedDto *item in items) {
                 [appDelegate.sharesID setObject:item forKey:[@(item.idRemoteShared) stringValue]];
+            }
             
             NSArray *result = [[NCManageDatabase sharedInstance] updateShare:appDelegate.sharesID activeUrl:appDelegate.activeUrl account:appDelegate.activeAccount];
             if (result) {