You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Remove debug comments
This commit is contained in:
@@ -89,7 +89,7 @@ IndexedDBStoreBackend.prototype = {
|
||||
* @return {Promise} Resolves if the data was persisted.
|
||||
*/
|
||||
persistSyncData: function(nextBatch, roomsData) {
|
||||
console.log("persisting sync data");
|
||||
console.log("Persisting sync data up to ", nextBatch);
|
||||
return q.try(() => {
|
||||
const txn = this.db.transaction(["sync"], "readwrite");
|
||||
const store = txn.objectStore("sync");
|
||||
@@ -308,7 +308,6 @@ IndexedDBStore.prototype._setSyncData = function(nextBatch, roomsData) {
|
||||
};
|
||||
|
||||
IndexedDBStore.prototype._syncToDatabase = function() {
|
||||
console.log("_syncToDatabase");
|
||||
this._syncTs = Date.now(); // set now to guard against multi-writes
|
||||
|
||||
// work out changed users (this doesn't handle deletions but you
|
||||
@@ -381,11 +380,9 @@ function selectQuery(store, keyRange, resultMapper) {
|
||||
function promiseifyTxn(txn) {
|
||||
return new q.Promise((resolve, reject) => {
|
||||
txn.oncomplete = function(event) {
|
||||
console.log("txn success:", event);
|
||||
resolve(event);
|
||||
};
|
||||
txn.onerror = function(event) {
|
||||
console.error("txn fail:", event);
|
||||
reject(event);
|
||||
};
|
||||
});
|
||||
@@ -394,11 +391,9 @@ function promiseifyTxn(txn) {
|
||||
function promiseifyRequest(req) {
|
||||
return new q.Promise((resolve, reject) => {
|
||||
req.onsuccess = function(event) {
|
||||
console.log("req success:", event);
|
||||
resolve(event);
|
||||
};
|
||||
req.onerror = function(event) {
|
||||
console.error("req fail:", event);
|
||||
reject(event);
|
||||
};
|
||||
});
|
||||
|
@@ -77,7 +77,6 @@ class SyncAccumulator {
|
||||
if (!syncResponse.rooms) {
|
||||
return;
|
||||
}
|
||||
console.log("Accumulating ", syncResponse.next_batch, syncResponse);
|
||||
this.nextBatch = syncResponse.next_batch;
|
||||
if (syncResponse.rooms.invite) {
|
||||
Object.keys(syncResponse.rooms.invite).forEach((roomId) => {
|
||||
|
Reference in New Issue
Block a user