🐛 Block attributes are not refreshed after data syncing https://github.com/siyuan-note/siyuan/issues/11343

This commit is contained in:
Daniel 2024-05-11 11:11:15 +08:00
parent 89c55026ab
commit 0f915df236
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 21 additions and 2 deletions

View file

@ -49,7 +49,6 @@ import (
"github.com/siyuan-note/eventbus"
"github.com/siyuan-note/httpclient"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/cache"
"github.com/siyuan-note/siyuan/kernel/conf"
"github.com/siyuan-note/siyuan/kernel/filesys"
"github.com/siyuan-note/siyuan/kernel/task"
@ -1475,7 +1474,6 @@ func processSyncMergeResult(exit, byHand bool, mergeResult *dejavu.MergeResult,
syncingFiles = sync.Map{}
syncingStorages.Store(false)
cache.ClearDocsIAL() // 同步后文档树文档图标没有更新 https://github.com/siyuan-note/siyuan/issues/4939
if needFullReindex(upsertTrees) { // 改进同步后全量重建索引判断 https://github.com/siyuan-note/siyuan/issues/5764
FullReindex()
return