1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Filter keyValue from stored ids

This commit is contained in:
Mikhail Rakhmanov 2025-04-07 15:52:50 +02:00
parent 4054a914a7
commit d2ea2ba75d
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -120,8 +120,9 @@ func (h *headSync) AllIds() []string {
func (h *headSync) ExternalIds() []string {
settingsId := h.storage.StateStorage().SettingsId()
aclId := h.syncAcl.Id()
keyValueId := h.keyValue.DefaultStore().Id()
return slice.DiscardFromSlice(h.AllIds(), func(id string) bool {
return id == settingsId || id == aclId
return id == settingsId || id == aclId || id == keyValueId
})
}