Skip to content

Commit cfd2062

Browse files
authored
Use the stable endpoint when reporting rooms. (#1891)
* Use the stable endpoint when reporting rooms. * Bump webrick
1 parent 07e8d57 commit cfd2062

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ GEM
275275
concurrent-ruby (~> 1.0)
276276
uber (0.1.0)
277277
unicode-display_width (2.5.0)
278-
webrick (1.8.1)
278+
webrick (1.9.0)
279279
word_wrap (1.0.0)
280280
xcode-install (2.8.1)
281281
claide (>= 0.9.1)

MatrixSDK/MXRestClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3103,7 +3103,7 @@ -(MXHTTPOperation *)reportRoom:(NSString *)roomId
31033103
success:(void (^)(void))success
31043104
failure:(void (^)(NSError *))failure
31053105
{
3106-
NSString *path = [NSString stringWithFormat:@"%@/org.matrix.msc4151/rooms/%@/report", kMXAPIPrefixPathUnstable, roomId];
3106+
NSString *path = [NSString stringWithFormat:@"%@/rooms/%@/report", kMXAPIPrefixPathV3, roomId];
31073107

31083108
NSDictionary *parameters = @{ @"reason": reason.length > 0 ? reason : @"" };
31093109

0 commit comments

Comments
 (0)