Show login notification when zap controls clicked while logged out

This commit is contained in:
thePR0M3TH3AN committed 2025-10-19 14:05:09 -04:00
1 parent 6779d1e345
commit ca937418be
2 files changed
+2 -7

No files matched your search

+1 -4
View File
@@ -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 (
+1 -3
View File
@@ -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) {