1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

update/remove comments

This commit is contained in:
Bruno Windels
2018-09-06 18:09:46 +02:00
parent 7ae6c147fa
commit 1511a27f4c

View File

@@ -269,7 +269,6 @@ LocalIndexedDBStoreBackend.prototype = {
setOutOfBandMembers: async function(roomId, membershipEvents) {
console.log(`LL: backend about to store ${membershipEvents.length}` +
` members for ${roomId}`);
// run everything in a promise so anything that throws will reject
const tx = this.db.transaction(["oob_membership_events"], "readwrite");
const store = tx.objectStore("oob_membership_events");
membershipEvents.forEach((e) => {
@@ -286,9 +285,6 @@ LocalIndexedDBStoreBackend.prototype = {
state_key: 0,
};
store.put(markerObject);
// ignore the empty array Promise.all creates
// as this method should just resolve
// to undefined on success
await txnAsPromise(tx);
console.log(`LL: backend done storing for ${roomId}!`);
},