Skip to content

Commit

Permalink
Use the stable endpoint when reporting rooms.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Nov 27, 2024
1 parent 07e8d57 commit 33b54c8
Showing 1 changed file with 1 addition and 1 deletion.
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 33b54c8

Please sign in to comment.