Skip to content

Show spaces horizontal bar

Snehit Sah requested to merge flyingcakes/neochat:show-spaces-1 into master

Summary

This merge request adds a horizontal bar at top of room list, which shows spaces. By clicking on a space, user can filter out rooms belonging only to that specific space.

Pending/ Help needed

Segfault when loading active connection on startup

Refer void SortFilterRoomListModel::cacheSpaceHierarchy() (link) in src/sortfilterroomlistmodel.cpp.

On line 129, I have called connection->allRooms(), which segfaults if the active connection hasn't been loaded yet. Is there a way to ensure that Controller::instance().activeConnection() on line 128 waits till connection is loaded?

Avatars

Avatars on space horizontal bar aren't aligned to vertical middle. I'll need help with that.

Using the code below doesn't help with padding

delegate: QQC2.Control {
    topPadding: 10
    contentItem: Kirigami.Avatar { ..... }
}

This complains about uninitialized properties in Kirigami.Avatar. (id, currentRoom, avatar, index are properties utilized during run time)

After we get around these two issue, this MR will be ready from my side.

Edited by Tobias Fella

Merge request reports