feat: Enhance Nostr chat functionality and debugging

- Improve console logging in ChatComponent and useNostrChat for better tracking of message sending, user authentication, and key management.
- Update user authentication checks to ensure valid Nostr keypairs are available before sending messages.
- Refactor message handling logic to streamline subscription and processing of incoming messages, enhancing overall chat experience.
This commit is contained in:
padreug 2025-08-10 12:35:47 +02:00
parent 8e94216c02
commit 390f77539e
3 changed files with 108 additions and 194 deletions

View file

@ -40,6 +40,7 @@ interface User {
username?: string
email?: string
pubkey?: string
prvkey?: string // Nostr private key for user
external_id?: string
extensions: string[]
wallets: Wallet[]