[client] isUpdateAvailable should not block UI rendering

This commit is contained in:
Laura Hausmann 2023-11-29 21:14:41 +01:00
parent cd8809e927
commit 4794702e6f
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605
2 changed files with 6 additions and 2 deletions

View File

@ -126,7 +126,9 @@ os.api("admin/abuse-user-reports", {
}); });
if (defaultStore.state.showAdminUpdates) { if (defaultStore.state.showAdminUpdates) {
updateAvailable = await isUpdateAvailable(); isUpdateAvailable().then(res => {
updateAvailable = res;
});
} }
const NARROW_THRESHOLD = 600; const NARROW_THRESHOLD = 600;

View File

@ -197,7 +197,9 @@ if ($i?.isAdmin) {
}); });
if (defaultStore.state.showAdminUpdates) { if (defaultStore.state.showAdminUpdates) {
updateAvailable = await isUpdateAvailable(); isUpdateAvailable().then(res => {
updateAvailable = res;
});
} }
} }