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:
parent
8e94216c02
commit
390f77539e
3 changed files with 108 additions and 194 deletions
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue