The server-side flush didn't eliminate the race because browser HTMX and SSE event processing are inherently async. Real fix: embed data-current-user-id on #discussion-tab (from DiscussionTabData. CurrentUserID). The SSE handler now skips any event whose authorUserId matches the current user — those messages are always delivered via HTMX (IsOwn=true, right-aligned). SSE only appends messages from other users. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .gitkeep | ||
| discussion-sse.js | ||
| logo_dark.png | ||
| logo_white.png | ||
| sortable.min.js | ||