Show a joined channel's web tab whichever reply comes first (closes #193) #196

Merged
clawbot merged 1 commits from issue-193-web-join-tab into next 2026-10-27 04:30:42 +01:00
1 Commits
Author SHA1 Message Date
sneak c223c274f9 Show a joined channel's web tab whichever reply comes first (closes #193)
check / check (push) Waiting to run
After a join request returned, joinChannel made tab number
tabsRef.current.length active. When the user's own JOIN event had
already added the tab, or the tab was already open, that index was one
past the last tab. The view then fell back to the Server tab and typed
lines were dropped.

joinChannel now finds the channel's tab by name inside its own tab-list
update and makes that tab active there. Preact runs that update at once
on the newest tab list, so the position is right even when the JOIN
event, or the close of another tab, landed first.

Model: opus-5-5
2026-10-27 02:56:14 +00:00