Skip to content

Commit d4de96c

Browse files
committed
Filter by type
1 parent 54f9728 commit d4de96c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libs/SalesforceSDKCore/SalesforceSDKCore/Classes/PushNotification/NotificationType.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public class NotificationType: NSObject, Codable {
2626
}
2727

2828
/** Creates a new NotificationType with only the specified actions
29-
* - Parameter allowedActionNames: Set of action names to keep
29+
* - Parameter allowedActionTypes: Set of action types to keep
3030
* - Returns: A new NotificationType with filtered actions
3131
**/
3232
@objc
33-
public func filteredCopy(keepingActions allowedActionNames: Set<String>) -> NotificationType {
33+
public func filteredCopy(keepingActions allowedActionTypes: Set<String>) -> NotificationType {
3434
let filteredGroups = actionGroups?.map { group in
3535
let filteredActions = group.actions.filter { action in
36-
allowedActionNames.contains(action.name)
36+
allowedActionTypes.contains(action.type)
3737
}
3838
return ActionGroup(name: group.name, actions: filteredActions)
3939
}

0 commit comments

Comments
 (0)