Rewrite the restricted iterators and reorder the forward references. [skip build]
This commit is contained in:
@@ -153,7 +153,8 @@ const deleteRustCryptoDatabase = async (session: Session): Promise<boolean> => {
|
||||
|
||||
console.log('[initMatrix] 🗑️ Deleting crypto databases:', cryptoDbNames);
|
||||
|
||||
for (const dbName of cryptoDbNames) {
|
||||
for (let i = 0; i < cryptoDbNames.length; i += 1) {
|
||||
const dbName = cryptoDbNames[i];
|
||||
try {
|
||||
await deleteIndexedDB(dbName);
|
||||
console.log(`[initMatrix] ✅ Deleted: ${dbName}`);
|
||||
@@ -395,7 +396,8 @@ export const fixKeyConflict = async (mx: MatrixClient): Promise<void> => {
|
||||
|
||||
console.log('[initMatrix] 🗑️ Deleting crypto databases:', cryptoDbNames);
|
||||
|
||||
for (const dbName of cryptoDbNames) {
|
||||
for (let i = 0; i < cryptoDbNames.length; i += 1) {
|
||||
const dbName = cryptoDbNames[i];
|
||||
try {
|
||||
await deleteIndexedDB(dbName);
|
||||
console.log(`[initMatrix] ✅ Deleted: ${dbName}`);
|
||||
|
||||
Reference in New Issue
Block a user