Skip to content

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

:art: Android/iOS 端不显示数据索引和搜索索引状态提示 Fix https://github.com/siyuan-note/siyuan/issues/6392

Liang Ding9b3da0274034
diff --git a/kernel/model/index.go b/kernel/model/index.go
index 6d52e5c9df..3c0de1a54f 100644
--- a/kernel/model/index.go
+++ b/kernel/model/index.go
@@ -257,11 +257,21 @@ func isLegacyDynamicBlockRef(blockRef *ast.Node) bool {
func init() {
eventbus.Subscribe(eventbus.EvtSQLInsertBlocks, func(context map[string]interface{}, blockCount int, hash string) {
+ if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
+ // Android/iOS 端不显示数据索引和搜索索引状态提示 https://github.com/siyuan-note/siyuan/issues/6392
+ return
+ }
+
msg := fmt.Sprintf(Conf.Language(89), blockCount, hash)
util.SetBootDetails(msg)
util.ContextPushMsg(context, msg)
})
eventbus.Subscribe(eventbus.EvtSQLInsertBlocksFTS, func(context map[string]interface{}, blockCount int, hash string) {
+ if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
+ // Android/iOS 端不显示数据索引和搜索索引状态提示 https://github.com/siyuan-note/siyuan/issues/6392
+ return
+ }
+
msg := fmt.Sprintf(Conf.Language(90), blockCount, hash)
util.SetBootDetails(msg)
util.ContextPushMsg(context, msg)