fix(ui): deduplicate layout-level API requests (#25942)

This commit is contained in:
G30 authored and GitHub committed 2026-06-17 00:09:50 +02:00
1 parent ee3a49a88d
commit 966b3fdb57
4 files changed
+7 -23

No files matched your search

-12
View File
@@ -993,18 +993,6 @@
$socket?.on('events', chatEventHandler);
$socket?.on('events:channel', channelEventHandler);
const userSettings = await getUserSettings(localStorage.token);
if (userSettings) {
settings.set(userSettings.ui);
} else {
try {
settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}'));
} catch {
settings.set({});
}
}
setTextScale($settings?.textScale ?? 1);
// Set up the token expiry check
if (tokenTimer) {
clearInterval(tokenTimer);