cleanup group on auto load if name not found

This commit is contained in:
Wolfsblvt
2025-02-17 09:58:37 +01:00
parent 231068f729
commit ab27b29819

View File

@@ -301,6 +301,11 @@ async function RA_autoloadchat() {
saveSettingsDebounced();
} else {
const result = await openGroupById(String(active_group));
if (!result) {
setActiveGroup(null);
saveSettingsDebounced();
console.warn(`Currently active group with ID ${active_group} not found. Resetting to no active group.`);
}
}
}