Skip to content

Commit 33b54c8

Browse files
committed
Use the stable endpoint when reporting rooms.
1 parent 07e8d57 commit 33b54c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)