mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-06-11 01:04:56 +02:00
e3211dd536
The optimistic-send path renders the bubble with msg.id = "_pending_<ts>" before the API confirms. The previous PR baked that string straight into onclick="resendChannelMessageRaw(_pending_<ts>, this)" — an undefined identifier — so the first click after sending threw ReferenceError and nothing happened. Skip the raw-resend button entirely while msg.id is non-numeric, then run a one-shot refreshMessagesMeta([real_id]) right after the optimistic id swap so the button shows up immediately even on channels where no echoes arrive (so the existing echo-driven inject path never fires). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>