atagen

malice

public
Star0
Watch0

Commit 61382e376b15

tarball

atagen <boss@atagen.co>2026-10-28 01:39 UTC

1 file changed+1-1
web: show a repeated banner once instead of stacking copies

When every room open timed out during an event cache stall, five identical "room timeline build timed out" banners stacked over the timeline. A banner whose message is already showing now replaces the older copy.
Modified file: web/src/lib/store.ts+1 additions−1 deletions
@@ -102,7 +102,7 @@ let nextBannerId = 1;
102102
103103 export function pushBanner(message: string): void {
104104 const id = nextBannerId++;
105- banners.update((list) => [...list.slice(-4), { id, message }]);
105+ banners.update((list) => [...list.filter((b) => b.message !== message).slice(-4), { id, message }]);
106106 }
107107
108108 export function dismissBanner(id: number): void {