Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spaces] Show spaces in left panel #4509 #1159

Merged
merged 6 commits into from
Aug 2, 2021

Conversation

gileluard
Copy link
Contributor

@gileluard gileluard commented Jul 15, 2021

- Initial yet naive algortihm for building the graph of rooms
MatrixSDK/Space/MXSpace.swift Outdated Show resolved Hide resolved
MatrixSDK/Space/MXSpace.swift Show resolved Hide resolved
MatrixSDK/Space/MXSpace.swift Show resolved Hide resolved
MatrixSDK/Space/MXSpace.swift Show resolved Hide resolved
@@ -51,6 +58,9 @@ public class MXSpaceService: NSObject {
private let processingQueue: DispatchQueue
private let completionQueue: DispatchQueue

public private(set) var spaces: [MXSpace] = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of a public property we should have like Android getters that returns space summaries, not directly MXSpace:

fun getSpaceSummaries(spaceSummaryQueryParams: SpaceSummaryQueryParams): List<RoomSummary>
fun getRootSpaceSummaries(): List<RoomSummary>

At the moment we do not have filtering but it will come later.

- Update after review
- Compute parent rooms list for each room
- Provide list of root spaces summaries
- `membersId` in `MXSpace` renamed  as `otherMembersId`
- new API `MXSpaceService` for getting all ancestors of a room
@gileluard gileluard merged commit 913703f into spaces Aug 2, 2021
@gileluard gileluard deleted the gil/4509_show_spaces_in_left_panel branch August 2, 2021 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants