Auto-joining chatrooms steal focus, leaking messages
When chatrooms are auto-joined on startup and startup is slow, or chatrooms are reconnected in the middle of a session, the opening tab steals focus from the currently active tab.
The tab is opened in the background; however, focus is transferred to the message input field in the newly opened tab, not obvious to the user at first.
That results in parts of messages being entered into the chatroom instead of the foreground tab when typing a message while a chatroom is joined, and has lead to sensitive messages being sent to a chatroom instead of a private chat in my daily use because I didn't expect to be writing into a field that didn't even exist when I started typing.
The bug is reproducible throughout several different desktop environments on Debian GNU/Linux in different versions and architectures.