Skip to content

Commit

Permalink
Merge pull request #1415 from matrix-org/gil/5144-Use_the_stable_hier…
Browse files Browse the repository at this point in the history
…archy_endpoint_from_MSC2946

Use the stable hierarchy endpoint from MSC2946 #5144
  • Loading branch information
gileluard authored Mar 22, 2022
2 parents 7d72a43 + 40989ff commit 930fd2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MatrixSDK/MXRestClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -5926,8 +5926,8 @@ - (MXHTTPOperation*)getSpaceChildrenForSpaceWithId:(NSString*)spaceId
NSString *limitParam = limit >= 0 ? [NSString stringWithFormat:@"&limit=%ld", (long)limit] : @"";
NSString *maxDepthParam = maxDepth >= 0 ? [NSString stringWithFormat:@"&max_depth=%ld", (long)maxDepth] : @"";
NSString *fromParam = paginationToken != nil ? [NSString stringWithFormat:@"&from=%@", paginationToken] : @"";
NSString *path = [NSString stringWithFormat:@"%@/org.matrix.msc2946/rooms/%@/hierarchy?suggested_only=%@%@%@%@",
kMXAPIPrefixPathUnstable, spaceId, suggestedOnly ? @"true": @"false", limitParam, maxDepthParam, fromParam];
NSString *path = [NSString stringWithFormat:@"%@/rooms/%@/hierarchy?suggested_only=%@%@%@%@",
kMXAPIPrefixPathV1, spaceId, suggestedOnly ? @"true": @"false", limitParam, maxDepthParam, fromParam];

MXWeakify(self);
return [httpClient requestWithMethod:@"GET"
Expand Down
1 change: 1 addition & 0 deletions changelog.d/5144.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MXRestClient: Use the stable hierarchy endpoint from MSC2946

0 comments on commit 930fd2e

Please sign in to comment.