Skip to content

Commit 355b763

Browse files
authored
Fix some warnings. (#1440)
1 parent e443736 commit 355b763

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

MatrixSDK/Data/EventsEnumerator/MXEventsByTypesEnumeratorOnArray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
Construct an enumerator based on an array of event identifiers.
3030
31-
@param messages the list of messages to enumerate on.
31+
@param eventIds the list of eventIds to enumerate on.
3232
@param types an array of event types strings to use as a filter filter.
3333
@param dataSource object responsible for translating an event identifier into
3434
the most recent version of the event.

MatrixSDK/MXRestClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ NS_REFINED_FOR_SWIFT;
10291029
- (MXHTTPOperation*)setRoomJoinRule:(NSString*)roomId
10301030
joinRule:(MXRoomJoinRule)joinRule
10311031
success:(void (^)(void))success
1032-
failure:(void (^)(NSError *error))failure NS_REFINED_FOR_SWIFT;
1032+
failure:(void (^)(NSError *error))failure NS_REFINED_FOR_SWIFT __deprecated_msg("Use [setRoomJoinRule:forRoomWithId:allowedParentIds:success:failure:] instead");
10331033

10341034
/**
10351035
Set the join rule of a room.
@@ -1061,7 +1061,7 @@ NS_REFINED_FOR_SWIFT;
10611061
*/
10621062
- (MXHTTPOperation*)joinRuleOfRoom:(NSString*)roomId
10631063
success:(void (^)(MXRoomJoinRule joinRule))success
1064-
failure:(void (^)(NSError *error))failure NS_REFINED_FOR_SWIFT;
1064+
failure:(void (^)(NSError *error))failure NS_REFINED_FOR_SWIFT __deprecated_msg("Use [joinRuleOfRoomWithId:success:failure:] instead");
10651065

10661066
/**
10671067
Get the enhanced join rule of a room.

changelog.d/pr-1440.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix some warnings.

0 commit comments

Comments
 (0)