Remove direct fallback if proxy enabled (#2231)
* Remove directReceive setting * Never fallback to direct if proxy is enabled --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
This commit is contained in:
parent
acf042f06e
commit
6efc0be9e5
@ -17,6 +17,9 @@ export async function getCost ({ msats }) {
|
||||
export async function getInvoiceablePeer (_, { me, models, cost, paymentMethod }) {
|
||||
if (paymentMethod === PAID_ACTION_PAYMENT_METHODS.P2P && !me?.proxyReceive) return null
|
||||
|
||||
// don't fallback to direct if proxy is enabled to always hide stacker's node pubkey
|
||||
if (paymentMethod === PAID_ACTION_PAYMENT_METHODS.DIRECT && me?.proxyReceive) return null
|
||||
|
||||
const wallets = await getInvoiceableWallets(me.id, { models })
|
||||
if (wallets.length === 0) {
|
||||
return null
|
||||
|
Loading…
x
Reference in New Issue
Block a user