Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): improve keysend receive message
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Mar 24, 2020
1 parent 5572048 commit 2130610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renderer/reducers/invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ export const receiveInvoiceData = invoice => dispatch => {
const intl = getIntl()
// HTML 5 desktop notification for the invoice update
const notifTitle = intl.formatMessage(messages.invoice_receive_title)
const notifBody = intl.formatMessage(messages.invoice_receive_body)
const notifBody = intl.formatMessage(
invoice.is_keysend ? messages.keysend_receive_body : messages.invoice_receive_body
)

showSystemNotification(notifTitle, { body: notifBody })
}
Expand Down
1 change: 1 addition & 0 deletions renderer/reducers/messages/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineMessages({
channels_open_warning: 'Channel opening initiated',
invoice_receive_title: `You've been Zapped`,
invoice_receive_body: 'Congrats, someone just paid an invoice of yours',
keysend_receive_body: 'Congrats, someone just paid you',
app_init_db_error: 'Unable to initialize database: {error}',
transaction_received_title: 'On-chain Transaction Received!',
transaction_received_body: `Lucky you, you just received a new on-chain transaction. I'm jealous.`,
Expand Down

0 comments on commit 2130610

Please sign in to comment.