Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17555#issuecomment-4280872035

Daniel53bcf771063f
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 74c655c0f6..f29de00a45 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -246,7 +246,7 @@ func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (err
err = netAssets2LocalAssets0(tree, onlyImg, originalURL, assetsDirPath, true)
go func() {
time.Sleep(128 * time.Microsecond)
- util.PushIsSyncing(rootID, false)
+ util.PushReloadProtyle(rootID)
}()
return
}
diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go
index 816ff2862e..51b49dcdef 100644
--- a/kernel/util/websocket.go
+++ b/kernel/util/websocket.go
@@ -351,10 +351,6 @@ func PushReloadProtyle(rootID string) {
BroadcastByType("protyle", "reload", 0, "", rootID)
}
-func PushIsSyncing(rootID string, isSyncing bool) {
- BroadcastByType("protyle", "isSyncing", 0, "", map[string]any{"rootID": rootID, "isSyncing": isSyncing})
-}
-
func PushSetRefDynamicText(rootID, blockID, defBlockID, refText string) {
BroadcastByType("main", "setRefDynamicText", 0, "", map[string]any{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText})
}