Skip to content

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

:art: Partially refresh the interface after data synchronization https://github.com/siyuan-note/siyuan/issues/8098

Liang Ding40d952e12da3
diff --git a/kernel/model/repository.go b/kernel/model/repository.go
index b5513013b7..e169976dbe 100644
--- a/kernel/model/repository.go
+++ b/kernel/model/repository.go
@@ -1245,6 +1245,13 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dej
elapsed := time.Since(start)
go func() {
util.WaitForUILoaded()
+
+ if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
+ // 移动端不推送差异详情
+ upsertRootIDs = []string{}
+ removeRootIDs = []string{}
+ }
+
util.BroadcastByType("main", "syncMergeResult", 0, "",
map[string]interface{}{"upsertRootIDs": upsertRootIDs, "removeRootIDs": removeRootIDs})
diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go
index 6eac800625..a4c393b272 100644
--- a/kernel/util/runtime.go
+++ b/kernel/util/runtime.go
@@ -45,7 +45,6 @@ var IsUILoaded = false
func WaitForUILoaded() {
for !IsUILoaded {
- logging.LogInfof("waiting for UI loading...")
time.Sleep(200 * time.Millisecond)
}
}