aboutsummaryrefslogtreecommitdiffstats
path: root/src/nwc-respond.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/nwc-respond.js')
-rw-r--r--src/nwc-respond.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nwc-respond.js b/src/nwc-respond.js
index 12101f5..98fd19c 100644
--- a/src/nwc-respond.js
+++ b/src/nwc-respond.js
@@ -14,6 +14,7 @@
// to a notification that opens the wallet.
import { hex } from '@scure/base';
+import { notifyText } from './notify-text.js';
import * as nip04 from 'nostr-tools/nip04';
import * as nip44 from 'nostr-tools/nip44';
import { finalizeEvent } from 'nostr-tools/pure';
@@ -198,7 +199,8 @@ async function respondOffer(ev, rec, walletKey, { notifier, fetchFn, saveFn, log
await saveFn(walletKey, rec);
await publish({ bolt11: a.invoice });
log(`minted ${sat} sat offer invoice while closed`);
- return { notify: { title: 'Incoming payment', body: 'Someone is paying you. Open Coinos to receive it.' } };
+ const [title, body] = notifyText('incoming');
+ return { notify: { title, body } };
} catch (e) {
log('offer mint failed: ' + e.message);
await publish({ error: 'Temporary Failure', code: 2 }).catch(() => {});