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