diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/features/messages.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index a370097..582bf3b 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -999,7 +999,12 @@ export function messagesFeature(ctx) { // never sends what the user turned off (a suppressed-but-delivered push // would earn Chrome's generic "updated in background" nag instead) const reasons = { payment: s.reasons?.payment !== false, dm: s.reasons?.dm !== false }; - return { ptags: myPubkeys(), authors, reasons }; + // Stamp the network: the same seed makes the same nostr pubkey on mainnet + // AND staging, so without this the notifier fans a mainnet payment push + // out to the staging PWA's subscription too — and tapping it opened + // staging. The notifier now delivers a payment only to registrations on + // the payment's own network. + return { ptags: myPubkeys(), authors, reasons, net: getNetwork() }; } const roomNotify = (cid) => !!st().notify[cid]; |
