From ca937418beeddc2608f7937cb48808bf16d57cb5 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 19 Oct 2025 14:05:09 -0400 Subject: [PATCH] Show login notification when zap controls clicked while logged out --- js/channelProfile.js | 5 +---- js/ui/zapController.js | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/js/channelProfile.js b/js/channelProfile.js index 5f454cba..a1a10e9e 100644 --- a/js/channelProfile.js +++ b/js/channelProfile.js @@ -506,10 +506,7 @@ function setChannelZapVisibility(visible) { typeof app?.isUserLoggedIn === "function" ? app.isUserLoggedIn() : Boolean(app?.normalizeHexPubkey?.(app?.pubkey)); - const sessionActorPubkey = getSessionActorPubkey(); - const hasSessionActor = sessionActorPubkey.length > 0; - const sessionOnly = !isLoggedIn && hasSessionActor; - const shouldShow = !!visible && (isLoggedIn || sessionOnly); + const shouldShow = !!visible; const requiresLogin = shouldShow && !isLoggedIn; if ( diff --git a/js/ui/zapController.js b/js/ui/zapController.js index 53c99cde..4587cf90 100644 --- a/js/ui/zapController.js +++ b/js/ui/zapController.js @@ -97,9 +97,7 @@ export default class ZapController { setVisibility(visible) { const lightningVisible = !!visible; const loggedIn = this.isUserLoggedIn(); - const sessionActorAvailable = this.hasSessionActor(); - const shouldShow = - lightningVisible && (loggedIn || sessionActorAvailable); + const shouldShow = lightningVisible; const requiresLogin = shouldShow && !loggedIn; const hasWallet = this.hasActiveWalletConnection(); if (this.videoModal) {