mirror of https://github.com/logseq/logseq
fix: don't filter delete txn when downloading
parent
cd572fff9f
commit
49c7d8e51c
|
@ -469,19 +469,16 @@
|
|||
(defn- filter-download-files-with-reserved-chars
|
||||
"Skip downloading file paths with reserved chars."
|
||||
[files]
|
||||
(let [reserved-files (filter
|
||||
#(and
|
||||
(not (.-deleted? ^js %))
|
||||
(fs-util/include-reserved-chars? (-relative-path %)))
|
||||
files)]
|
||||
(let [f #(and
|
||||
(not (.-deleted? ^js %))
|
||||
(fs-util/include-reserved-chars? (-relative-path %)))
|
||||
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."
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue