Skip to content

Commit

Permalink
Merge pull request #1348 from matrix-org/gil/5432_Space_invites_are_n…
Browse files Browse the repository at this point in the history
…ot_displayed_in_space_list

Space invites are not displayed in space list #5432
  • Loading branch information
gileluard authored Jan 25, 2022
2 parents 83273f8 + eb19908 commit e2e4247
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions MatrixSDK/Space/MXSpace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ public class MXSpace: NSObject {

self.sdkProcessingQueue.async {
room.state { [weak self] roomState in
guard let self = self else {
return
}
guard let self = self else { return }

self.processingQueue.async {
var childRoomIds: [String] = []
Expand All @@ -104,7 +102,12 @@ public class MXSpace: NSObject {

self.sdkProcessingQueue.async {
room.members { [weak self] response in
guard let self = self, let members = response.value as? MXRoomMembers else {
guard let self = self else { return }

guard let members = response.value as? MXRoomMembers else {
self.completionQueue.async {
completion()
}
return
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/5432.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MXSpace: fix space invites blocks space graph build

0 comments on commit e2e4247

Please sign in to comment.