fix: disable creating remote graph when sync is not started yet

Also, don't show `password is required` when starting the sync.
This commit is contained in:
Tienson Qin
2022-09-14 17:28:21 +08:00
parent 14e87963ef
commit 376cda0bd3
4 changed files with 87 additions and 71 deletions

View File

@@ -88,7 +88,7 @@
(vector? (:sync-meta %))
(util/uuid-string? (first (:sync-meta %)))
(util/uuid-string? (second (:sync-meta %)))) repos)
(file-sync-restart!)))))
(sync/sync-start)))))
(file-sync/maybe-onboarding-show status)))))))
(defmethod handle :user/logout [[_]]
@@ -639,9 +639,6 @@
(notification/show! "file sync graph count exceed limit" :warning false)
(file-sync-stop!))
(defmethod handle :file-sync/restart [[_]]
(file-sync-restart!))
(defmethod handle :graph/restored [[_ _graph]]
(mobile/init!)
(when-not (mobile-util/native-ios?)