Fix the mechanical lint groups and delete the unused bindings. [skip build]
This commit is contained in:
1 parent
593dd3bdf3
commit
5477242661
26 files changed
+95
-161
No files matched your search
@@ -89,7 +89,7 @@ const deleteAllMatrixDatabases = async (): Promise<void> => {
|
||||
// Delete each database with timeout
|
||||
const deletePromises = dbsToDelete.map(async (dbName) => {
|
||||
try {
|
||||
const deletePromise = new Promise<void>((resolve, reject) => {
|
||||
const deletePromise = new Promise<void>((resolve) => {
|
||||
const request = indexedDB.deleteDatabase(dbName);
|
||||
request.onsuccess = () => {
|
||||
console.log(`[AccountSwitcher] ✅ Deleted database: ${dbName}`);
|
||||
@@ -155,7 +155,9 @@ export function AccountSwitcher({ currentUserId }: AccountSwitcherProps) {
|
||||
await deleteAllMatrixDatabases();
|
||||
|
||||
// Small delay to ensure cleanup is complete
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
await new Promise((resolve) => {
|
||||
setTimeout(resolve, 100);
|
||||
});
|
||||
|
||||
// Reload the page to initialize the new session
|
||||
console.log('[AccountSwitcher] Reloading page...');
|
||||
|
||||
Reference in new issue
Block a user