index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-06-30 10:38:56 +0800
committerPeter Cai <[email protected]>2020-06-30 10:38:56 +0800
commitab1272e9370676956cc49b2ba51703f8aa17fa2a (patch)
treeebec772b24832c9ea5a8ee621a86826543e0335b
parent4ac4b34979a02e8ba8704658d285e6752b411e59 (diff)
downloadmatrix-js-sdk-ab1272e9370676956cc49b2ba51703f8aa17fa2a.tar.gz
store: indexeddb: decrease saving interval
* On mobile we can't expect users to stay in the app for 5 minutes
-rw-r--r--src/store/indexeddb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/indexeddb.js b/src/store/indexeddb.js
index 9cde4467..9be08c38 100644
--- a/src/store/indexeddb.js
+++ b/src/store/indexeddb.js
@@ -37,7 +37,7 @@ import {logger} from '../logger';
// so infrequently that the /sync size gets bigger on reload. Writing more
// often does not affect the length of the pause since the entire /sync
// response is persisted each time.
-const WRITE_DELAY_MS = 1000 * 60 * 5; // once every 5 minutes
+const WRITE_DELAY_MS = 1000 * 60 * 1; // once every 1 minutes
/**