Skip to content

Commit

Permalink
Use the stable endpoint when reporting rooms. (#1891)
Browse files Browse the repository at this point in the history
* Use the stable endpoint when reporting rooms.

* Bump webrick
  • Loading branch information
pixlwave authored Nov 29, 2024
1 parent 07e8d57 commit cfd2062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion MatrixSDK/MXRestClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 : @"" };

Expand Down

0 comments on commit cfd2062

Please sign in to comment.