-
Notifications
You must be signed in to change notification settings - Fork 904
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
Create BAT notification service to deliver BAT-related notifications #581
Conversation
@@ -473,6 +478,8 @@ void RewardsServiceImpl::OnWalletProperties(ledger::Result result, | |||
void RewardsServiceImpl::OnGrant(ledger::Result result, | |||
const ledger::Grant& grant) { | |||
TriggerOnGrant(result, grant); | |||
bat_notifications_service_->AddNotification( |
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 seemed to be the only place to add a notification like this so far, but let me know.
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.
yes this is the only place for now
] | ||
} | ||
], | ||
"functions": [ |
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.
Wasn't sure if all of these functions would be necessary? But added them in case, let me know.
0e786b3
to
ba86196
Compare
@emerick can you please rename all files and functions from |
71ebea5
to
901583f
Compare
5516b4c
to
545c115
Compare
25a486e
to
d97a6d2
Compare
d97a6d2
to
e3ba710
Compare
}; | ||
|
||
struct RewardsNotification { | ||
RewardsNotification() |
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.
we need to add args to RewardsNotification sturct as well, so that we save args as well to disk
e4f33f6
to
7504ea0
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.
nit: Add CRLF
package.json
Outdated
@@ -94,7 +94,7 @@ | |||
"babel-preset-react": "^6.24.1", | |||
"babel-preset-react-optimize": "^1.0.1", | |||
"babel-preset-stage-0": "^6.24.1", | |||
"brave-ui": "^0.26.0", | |||
"brave-ui": "^0.27.0", |
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.
We're getting 28.x for free. This can be removed.
@NejcZdovc please rebase |
399ee54
to
5cab204
Compare
Create BAT notification service to deliver BAT-related notifications
Create BAT notification service to deliver BAT-related notifications
@emerick I think the title of this issue was misleading for the implementation |
yep sounds good. Label with refactor label. |
Sounds good, created brave/brave-browser#1679 to track this work. |
Rename unstable to dev in linux build output
Rename unstable to dev in linux build output
Rename unstable to dev in linux build output
Fixes brave/brave-browser#922
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: