Use ref for memberPanelOpen in openChat to prevent stale closure

Fixkamo-internal
Ya
11 Machi 2026, 00:21 UTC
Mwandishi
kamo
Ahadi ya
b380a54

When a user opens the member panel, clicks a member to chat, then closes the panel before the async session API call returns, the chat window was positioned with a 500px offset as if the panel were still open. This happened because openChat captured memberPanelOpen via closure at call time. Using a ref ensures the current panel state is read after the await.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei