You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
long line
This commit is contained in:
@@ -146,7 +146,9 @@ IndexedDBStore.prototype.save = function() {
|
|||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (now - this._syncTs > WRITE_DELAY_MS) {
|
if (now - this._syncTs > WRITE_DELAY_MS) {
|
||||||
this._syncTs = Date.now(); // set now to guard against multi-writes
|
this._syncTs = Date.now(); // set now to guard against multi-writes
|
||||||
return this.backend.syncToDatabase(this.getUsers()).catch((err) => {console.error("sync fail:", err);});
|
return this.backend.syncToDatabase(this.getUsers()).catch((err) => {
|
||||||
|
console.error("sync fail:", err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return q();
|
return q();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user