mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-06-11 09:14:52 +02:00
2f8f765af5
loadStatus and loadMessages fire in parallel at page init. Whichever lost the race left own-message bubbles without the raw-resend button — and once the row was rendered, neither displayMessages (no re-render on switch without going back through createMessageElement, which is gated on window.deviceCaps at the time of call) nor refreshMessagesMeta (skips rows that already have route info) would patch it back in. So the button only ever appeared for messages sent in the current session. Walk visible own bubbles in two places — at the end of loadStatus and at the end of displayMessages — and inject the button on any row missing it. Idempotent (skips bubbles that already have .btn-raw-resend), cheap (no network), and covers both the page-reload race and the channel-switch / archive-view paths. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>