From cfd20629fa805e9684eae2a4679563517e362819 Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Fri, 29 Nov 2024 12:16:37 +0000 Subject: [PATCH] Use the stable endpoint when reporting rooms. (#1891) * Use the stable endpoint when reporting rooms. * Bump webrick --- Gemfile.lock | 2 +- MatrixSDK/MXRestClient.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index d531aee81..d3dc824f1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -275,7 +275,7 @@ GEM concurrent-ruby (~> 1.0) uber (0.1.0) unicode-display_width (2.5.0) - webrick (1.8.1) + webrick (1.9.0) word_wrap (1.0.0) xcode-install (2.8.1) claide (>= 0.9.1) diff --git a/MatrixSDK/MXRestClient.m b/MatrixSDK/MXRestClient.m index 2691d211f..c92cc7ce5 100644 --- a/MatrixSDK/MXRestClient.m +++ b/MatrixSDK/MXRestClient.m @@ -3103,7 +3103,7 @@ -(MXHTTPOperation *)reportRoom:(NSString *)roomId success:(void (^)(void))success failure:(void (^)(NSError *))failure { - NSString *path = [NSString stringWithFormat:@"%@/org.matrix.msc4151/rooms/%@/report", kMXAPIPrefixPathUnstable, roomId]; + NSString *path = [NSString stringWithFormat:@"%@/rooms/%@/report", kMXAPIPrefixPathV3, roomId]; NSDictionary *parameters = @{ @"reason": reason.length > 0 ? reason : @"" };