diff --git a/vendor/brave-ios/Ledger/BATBraveLedger.h b/vendor/brave-ios/Ledger/BATBraveLedger.h index f9483482b4df..e3d4e1d71474 100644 --- a/vendor/brave-ios/Ledger/BATBraveLedger.h +++ b/vendor/brave-ios/Ledger/BATBraveLedger.h @@ -115,6 +115,10 @@ NS_SWIFT_NAME(BraveLedger) - (void)publisherBannerForId:(NSString *)publisherId completion:(void (^)(BATPublisherBanner * _Nullable banner))completion; +/// Refresh a publishers verification status +- (void)refreshPublisherWithId:(NSString *)publisherId + completion:(void (^)(BOOL verified))completion; + #pragma mark - Tips - (void)listRecurringTips:(void (^)(NSArray *))completion; diff --git a/vendor/brave-ios/Ledger/BATBraveLedger.mm b/vendor/brave-ios/Ledger/BATBraveLedger.mm index 6e2ce7c5b8bc..c5947eba7d89 100644 --- a/vendor/brave-ios/Ledger/BATBraveLedger.mm +++ b/vendor/brave-ios/Ledger/BATBraveLedger.mm @@ -438,6 +438,13 @@ - (nullable BATPublisherInfo *)currentActivityInfoWithPublisherId:(NSString *)pu return [[BATLedgerDatabase publishersWithActivityFromOffset:0 limit:1 filter:filter] firstObject]; } +- (void)refreshPublisherWithId:(NSString *)publisherId completion:(void (^)(BOOL verified))completion +{ + ledger->RefreshPublisher(std::string(publisherId.UTF8String), ^(bool verified) { + completion(verified); + }); +} + #pragma mark - Tips - (void)listRecurringTips:(void (^)(NSArray *))completion