Revert "Add encrypted note storage and keyring endpoints"

This reverts commit 35d3138c7d.
This commit is contained in:
eezd committed 2026-10-17 14:56:23 +08:00
1 parent b26c5aa693
commit 3c98a6bbd9
5 files changed
+32 -329

No files matched your search

+1 -5
View File
@@ -144,7 +144,7 @@ func (x *Index) sync(files map[string]string) error {
next[p] = d
}
for p, d := range x.known {
if _, ok := files[p]; !ok || vault.IsEncrypted(p) {
if _, ok := files[p]; !ok {
if err := remove(tx, d.id); err != nil {
return err
}
@@ -152,10 +152,6 @@ func (x *Index) sync(files map[string]string) error {
}
}
for p, rev := range files {
// 加密笔记的内容服务端无法读取,不入索引
if vault.IsEncrypted(p) {
continue
}
old, ok := x.known[p]
if ok && old.rev == rev {
continue