TagSpaces is an offline, open source, document manager with tagging support
always persisting index while on objectstore
Ilian Sapundshiev35c14178faf8
diff --git a/app/reducers/location-index.js b/app/reducers/location-index.jsindex 083796571..0d84da712 100644--- a/app/reducers/location-index.js+++ b/app/reducers/location-index.js@@ -31,6 +31,7 @@ import Search from '../services/search';import { actions as AppActions } from './app';import AppConfig from '../config';import i18n from '../services/i18n';+import PlatformIO from '../services/platform-io';export const types = {INDEX_DIRECTORY: 'INDEX_DIRECTORY',@@ -222,7 +223,7 @@ export const actions = {createDirectoryIndex(directoryPath, extractText).then(directoryIndex => {dispatch(actions.indexDirectorySuccess(directoryIndex));- if (Pro && currentLocation.persistIndex) {+ if (Pro && (currentLocation.persistIndex || PlatformIO.haveObjectStoreSupport())) { // always persist on s3 storesPro.Indexer.persistIndex(directoryPath, directoryIndex, (currentLocation.type === locationType.TYPE_CLOUD) ? '/' : AppConfig.dirSeparator);}return true;