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-07-06 09:19:11 +0800
commitc07b1f14abaca02e25542560295fc59984320fd6 (patch)
tree901deb91250b3bef3dca38ac3472ed29c43ca4bd
parent2a688bdac828dc62916437d83c72cef1e525d5f9 (diff)
downloadmatrix-js-sdk-c07b1f14abaca02e25542560295fc59984320fd6.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
/**