Fixes #540.
The issue occurred when the user had a direct chat open (which has no menu options, thus no menu to open), and then opened a group chat (new or not).
Closing the current open direct chat prior to opening a group chat would remedy the bug, since the chat screen state was built anew.
Likewise, opening a group chat from an already-opened group chat would remedy the bug, as the menu options are the same.
Solution
Update the overflow menu options on every chat state change ensures this bug no longer occurs.
As an UX improvement, I've also removed the menu button (three vertical dots) from the direct chats, as currently no menu options are there.
I was testing the PR on Linux.
After creating a new chat group, the chat group appeared in the overview part of the window, but was not opened for chatting directly.
Description
Fixes #540. The issue occurred when the user had a direct chat open (which has no menu options, thus no menu to open), and then opened a group chat (new or not). Closing the current open direct chat prior to opening a group chat would remedy the bug, since the chat screen state was built anew. Likewise, opening a group chat from an already-opened group chat would remedy the bug, as the menu options are the same.
Solution
Update the overflow menu options on every chat state change ensures this bug no longer occurs. As an UX improvement, I've also removed the menu button (three vertical dots) from the direct chats, as currently no menu options are there.