Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve assets data index updating after data sync on mobile https://github.com/siyuan-note/siyuan/issues/16747

Daniel289e4d38c463
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 32b89f0e4c..fe5d15d5a3 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -1579,3 +1579,7 @@ func copyAssetsToDataAssets(rootPath string) {
}
}
}
+
+func isFileWatcherAvailable() bool {
+ return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container
+}
diff --git a/kernel/model/assets_watcher.go b/kernel/model/assets_watcher.go
index a7d1b7ed99..174a7b504a 100644
--- a/kernel/model/assets_watcher.go
+++ b/kernel/model/assets_watcher.go
@@ -30,10 +30,6 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
-func isFileWatcherAvailable() bool {
- return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container
-}
-
var assetsWatcher *fsnotify.Watcher
func WatchAssets() {