fix: don't filter delete txn when downloading

pull/7281/head
Tienson Qin 2022-11-10 00:07:04 +08:00
parent cd572fff9f
commit 49c7d8e51c
2 changed files with 9 additions and 9 deletions

View File

@ -469,19 +469,16 @@
(defn- filter-download-files-with-reserved-chars
"Skip downloading file paths with reserved chars."
[files]
(let [reserved-files (filter
#(and
(let [f #(and
(not (.-deleted? ^js %))
(fs-util/include-reserved-chars? (-relative-path %)))
files)]
reserved-files (filter f files)]
(when (seq reserved-files)
(state/pub-event! [:ui/notify-skipped-downloading-files
(map -relative-path reserved-files)])
(prn "Skipped downloading those file paths with reserved chars: "
(map -relative-path reserved-files)))
(remove
#(fs-util/include-reserved-chars? (-relative-path %))
files)))
(remove f files)))
(defn- filter-upload-files-with-reserved-chars
"Remove upoading file paths with reserved chars."

View File

@ -782,7 +782,10 @@
"Logseq file and folder naming rules"]
" for more details."]
[:p
"To solve this problem, we suggest you quit Logseq and update the filename format (on Settings > Advanced > Filename format > click EDIT button) in other devices to avoid more potential bugs."]]]]
(util/format "To solve this problem, we suggest you quit Logseq and update the filename format (on Settings > Advanced > Filename format > click EDIT button)%s to avoid more potential bugs."
(if (and util/mac? (not (mobile-util/native-ios?)))
""
" in other devices"))]]]]
:warning
false))