Bug 473271 - Leaving an apparently empty space while viewing it results in the joined room list being hidden until next NeoChat restart
Summary: Leaving an apparently empty space while viewing it results in the joined room...
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-11 05:12 UTC by Aaron Rainbolt
Modified: 2023-08-28 09:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Rainbolt 2023-08-11 05:12:23 UTC
NOTE: I suspect this is a duplicate of https://bugs.kde.org/show_bug.cgi?id=472836 but since the way I caused the problem mentioned here was slightly different, I'm reporting it as a different bug.

SUMMARY
If you join a space in NeoChat, you will see a button for your "home" (where your main room list is), and a button for the space you just joined (both of these buttons will appear at the top of the room list). If the space you joined appears to be empty, and you leave that space while you still have it selected, the button that allows you to go back to your home list will vanish and you will not be able to see any of the rooms you are in. Resolving this requires restarting NeoChat.

STEPS TO REPRODUCE
1. Join some rooms.
2. Join a space that appears to be empty in NeoChat (#solus:matrix.org did the trick for me).
3. Make sure that the space you just joined is selected.
4. Right-click on the space and click "Leave space".

OBSERVED RESULT
You are left looking at an empty room list.

EXPECTED RESULT
You should be switched back to your "home" room list after leaving the space.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04 LTS
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.3
Comment 1 Bug Janitor Service 2023-08-27 22:52:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/neochat/-/merge_requests/1182
Comment 2 Tobias Fella 2023-08-28 09:47:56 UTC
Git commit cc60dde62d020d2faac941c41c080e42bf570eda by Tobias Fella, on behalf of Tobias Fella.
Committed on 28/08/2023 at 11:47.
Pushed by tfella into branch 'master'.

Deselect space when leaving it

M  +6    -1    src/qml/Page/RoomList/SpaceDrawer.qml

https://invent.kde.org/network/neochat/-/commit/cc60dde62d020d2faac941c41c080e42bf570eda
Comment 3 Tobias Fella 2023-08-28 09:48:51 UTC
Git commit 4886f1c3b9e6d800069a590a7391ea92f436fd30 by Tobias Fella, on behalf of Tobias Fella.
Committed on 28/08/2023 at 11:48.
Pushed by tfella into branch 'release/23.08'.

Deselect space when leaving it
(cherry picked from commit cc60dde62d020d2faac941c41c080e42bf570eda)

M  +6    -1    src/qml/Page/RoomList/SpaceDrawer.qml

https://invent.kde.org/network/neochat/-/commit/4886f1c3b9e6d800069a590a7391ea92f436fd30