fix(desktop): contain history retry failures

Keep exhausted recovery retries inside the notice action so retained history remains usable without an unhandled rejection.

Co-authored-by: Carl <9d00794d3df50972eb8b615511783cab12a77a8fd5dd5edd58073ec73b54bd8b@buzz.block.builderlab.xyz>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
This commit is contained in:
Wes
2026-08-29 09:30:16 -06:00
parent fe1732cefd
commit 55be15c74c

View File

@@ -51,6 +51,10 @@ export function HistoryRefreshNotice({
);
try {
await refreshChannelWindowMessages(client, channelId);
} catch {
// Exhausted query retries are already projected into refreshError.
// The recovery button owns this promise, so contain the rejection here.
return;
} finally {
// The observer can unmount before hydration/invalidation starts a fetch.
// Retire an unclaimed token too, without clearing a newer button click.