Skip to content

Commit

Permalink
Remove commented device property from push rules.
Browse files Browse the repository at this point in the history
It's an un-specced property and will be removed per matrix-org/synapse#12482
  • Loading branch information
pixlwave committed Jan 9, 2023
1 parent 983ad0f commit da412bc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions MatrixSDK/JSONModels/MXJSONModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -778,18 +778,12 @@ FOUNDATION_EXPORT NSString *const kMXPushRuleConditionStringSenderNotificationPe
Push rule scope definitions - String version
*/
FOUNDATION_EXPORT NSString *const kMXPushRuleScopeStringGlobal;
FOUNDATION_EXPORT NSString *const kMXPushRuleScopeStringDevice;

/**
`MXPushRulesResponse` represents the response to the /pushRules/ request.
*/
@interface MXPushRulesResponse : MXJSONModel

/**
Set of push rules specific per device.
*/
// @property (nonatomic) NSDictionary *device;

/**
Set of global push rules.
*/
Expand Down
3 changes: 0 additions & 3 deletions MatrixSDK/JSONModels/MXJSONModels.m
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,6 @@ @interface MXPushRulesResponse ()
@implementation MXPushRulesResponse

NSString *const kMXPushRuleScopeStringGlobal = @"global";
NSString *const kMXPushRuleScopeStringDevice = @"device";

+ (id)modelFromJSON:(NSDictionary *)JSONDictionary
{
Expand All @@ -845,8 +844,6 @@ + (id)modelFromJSON:(NSDictionary *)JSONDictionary
pushRulesResponse.global = [MXPushRulesSet modelFromJSON:JSONDictionary[kMXPushRuleScopeStringGlobal] withScope:kMXPushRuleScopeStringGlobal];
}

// TODO support device rules

pushRulesResponse->JSONDictionary = JSONDictionary;
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-1677.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove commented device property on MXPushRulesRespose.

0 comments on commit da412bc

Please sign in to comment.