fix: suppress unhandled rejection from saveStatus on rate limit

useAsync re-throws after setting error state, so callers that don't
await or catch the returned promise get an unhandled rejection. Fixes
JAVASCRIPT-REACT-E (429 on presence endpoint).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 19:36:26 -04:00
parent db4a39ff56
commit 98cbb32b86
@@ -399,7 +399,7 @@ function ProfileStatus() {
evt.preventDefault(); evt.preventDefault();
if (saving) return; if (saving) return;
const msg = statusMsg.trim(); const msg = statusMsg.trim();
saveStatus(msg); saveStatus(msg).catch(() => undefined);
const delayMs = getMsFromOption(clearAfter); const delayMs = getMsFromOption(clearAfter);
if (msg && delayMs > 0) { if (msg && delayMs > 0) {