WIP Add new lightning notification settings

This commit is contained in:
2024-05-29 15:12:07 +01:00
parent bad3b7a2be
commit 5348a229a6
3 changed files with 43 additions and 4 deletions

View File

@@ -12,7 +12,11 @@ class SettingsController < ApplicationController
end
def show
if @settings_section == "nostr"
case @settings_section
when "lightning"
@notifications_enabled = @user.preferences[:lightning_notify_sats_received] != "disabled" ||
@user.preferences[:lightning_notify_zap_received] != "disabled"
when "nostr"
session[:shared_secret] ||= SecureRandom.base64(12)
end
end