From 40989ff9d2c9a2b298c335539983fcfd42430c0d Mon Sep 17 00:00:00 2001 From: Gil Eluard Date: Fri, 18 Mar 2022 14:12:13 +0100 Subject: [PATCH] Use the stable hierarchy endpoint from MSC2946 #5144 - Done --- MatrixSDK/MXRestClient.m | 4 ++-- changelog.d/5144.change | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/5144.change diff --git a/MatrixSDK/MXRestClient.m b/MatrixSDK/MXRestClient.m index 351b99f8fa..ed3856ddf2 100644 --- a/MatrixSDK/MXRestClient.m +++ b/MatrixSDK/MXRestClient.m @@ -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" diff --git a/changelog.d/5144.change b/changelog.d/5144.change new file mode 100644 index 0000000000..eaa471b7b1 --- /dev/null +++ b/changelog.d/5144.change @@ -0,0 +1 @@ +MXRestClient: Use the stable hierarchy endpoint from MSC2946