Skip to content

Commit

Permalink
option to include all transactions in Userhistory (#2134)
Browse files Browse the repository at this point in the history
Co-authored-by: Andres Aguilar <andres.aguilar@nfl.com>
  • Loading branch information
andresesfm and Andres Aguilar authored Nov 29, 2022
1 parent 73e3896 commit 8d9d134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNIapIosSk2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ class RNIapIosSk2iOS15: Sk2Delegate {
}
}
// Iterate through all of the user's purchased products.
for await result in Transaction.currentEntitlements {
for await result in onlyIncludeActiveItems ? Transaction.currentEntitlements : Transaction.all {
do {
// Check whether the transaction is verified. If it isn’t, catch `failedVerification` error.
let transaction = try checkVerified(result)
Expand Down

0 comments on commit 8d9d134

Please sign in to comment.