-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes AddRecurringPayment as it's not used #2864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS looks good
@@ -132,9 +132,6 @@ NS_SWIFT_NAME(BraveLedger) | |||
|
|||
- (void)listRecurringTips:(void (^)(NSArray<BATPublisherInfo *> *))completion; | |||
|
|||
- (void)addRecurringTipToPublisherWithId:(NSString *)publisherId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, please leave this here, we are going to use it anyways from UI to add recurring tip
@@ -488,11 +488,6 @@ - (void)listRecurringTips:(void (^)(NSArray<BATPublisherInfo *> *))completion | |||
}); | |||
} | |||
|
|||
- (void)addRecurringTipToPublisherWithId:(NSString *)publisherId amount:(double)amount | |||
{ | |||
ledger->AddRecurringPayment(std::string(publisherId.UTF8String), amount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And instead of removing this entire method, we'll replace this call with:
[BATLedgerDatabase insertOrUpdateRecurringTipWithPublisherID:publisherId
amount:amount
dateAdded:[[NSDate date] timeIntervalSince1970]
completion:nil];
Same way that rewards_service_impl
handles this in SaveRecurringTip()
[Edit: timeIntervalSinceNow
→ timeIntervalSince1970
]
7bae28e
to
d375390
Compare
d375390
to
f0cb393
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should've been removed. publisher_state loading fails with this here:
Resolves brave/brave-browser#5136
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
make sure that CI passes
Reviewer Checklist:
After-merge Checklist:
changes has landed on.