qaul / qaul.net

Internet Independent Wireless Mesh Communication App
https://qaul.net
GNU Affero General Public License v3.0
496 stars 63 forks source link

[#540] Chat Menu not updating #542

Closed brenodt closed 1 year ago

brenodt commented 1 year ago

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.

MathJud commented 1 year ago

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.