marinofaggiana 5 жил өмнө
parent
commit
f42e40f19a

+ 4 - 1
iOSClient/Main/CCMain.m

@@ -1956,7 +1956,10 @@
 
 - (void)viewRichWorkspaceTapAction:(UITapGestureRecognizer *)tapGesture
 {
-    
+    tableMetadata *metadata = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND serverUrl == %@ AND fileNameView LIKE[c] %@", appDelegate.activeAccount, self.serverUrl, @"readme.md"]];
+    if (metadata) {
+        [self shouldPerformSegue:metadata selector:@""];
+    }
 }
 
 - (void)createRichWorkspace

+ 1 - 0
iOSClient/RichWorkspace/NCRichWorkspace.swift

@@ -47,5 +47,6 @@ import Foundation
         }
         
         webView.loadHTMLString(richWorkspaceHtml, baseURL: Bundle.main.bundleURL)
+        webView.isUserInteractionEnabled = false
     }
 }