From 9b342e29b4245ef51e47242ab899739c4a80d59d Mon Sep 17 00:00:00 2001 From: franzap <_@franzap.com> Date: Wed, 4 Feb 2026 22:29:03 -0300 Subject: [PATCH] Add pubkey for debugging --- lib/utils/debug_utils.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/utils/debug_utils.dart b/lib/utils/debug_utils.dart index 6db324b..3d0f60f 100644 --- a/lib/utils/debug_utils.dart +++ b/lib/utils/debug_utils.dart @@ -8,11 +8,13 @@ import 'package:models/models.dart'; bool isDebugMode(String? pubkey) { if (pubkey == null) return false; - const targetHex = - '726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11'; + const allowedHexKeys = { + '726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11', + '227ce06aa5fb84bf70f25d887519374d1bfd3e1ffb75697bb0aa8f6396f32e43', + }; // Try direct comparison first (hex format) - if (pubkey == targetHex) { + if (allowedHexKeys.contains(pubkey)) { return true; } @@ -20,7 +22,7 @@ bool isDebugMode(String? pubkey) { try { if (pubkey.startsWith('npub')) { final decoded = Utils.decodeShareableIdentifier(pubkey); - if (decoded is ProfileData && decoded.pubkey == targetHex) { + if (decoded is ProfileData && allowedHexKeys.contains(decoded.pubkey)) { return true; } }