nhexirc / nhex

A next-generation IRC client inspired by HexChat
https://nhexirc.com
19 stars 0 forks source link

Conditionally renders userlist when user clicks on a channel. #65

Closed zvxvx closed 8 months ago

zvxvx commented 8 months ago

This code is almost there, but needs work that I suspect is due to a deeper coupling of servers and channels beyond what I see in the .tsx files. Of course, I may have just missed something.

Right now, the userlist pops up when we click on a channel; however, clicking back on the server shows the chat from the channel instead of the server log.

I left a comment in the ServersAndChans component in regards to the emit functions I made. One is pretty much the original, but that's because it works better than only seeing the server log even when clicking on a channel.

See branch related to the development to the right.