Commit graph

13 commits

Author SHA1 Message Date
69d0a23848 fix typescript errors
fix typescript errors
2025-02-16 11:00:41 +01:00
074a1fc534 new message indicator 2025-02-16 11:00:41 +01:00
2bbb9ae938 refactor 2025-02-16 11:00:41 +01:00
d1ac7da1a6 refactor for better message handling 2025-02-16 11:00:41 +01:00
5eb46e96c3 refactor: improve nostr connection and message handling
- Add WebSocket manager class for better connection handling
- Split message handling into separate store
- Add encryption service class
- Create chat composable for reusable chat logic
- Add error handling service
- Add connection status indicators throughout app
- Add message persistence service
- Improve subscription reliability with EOSE handling
- Add connection state management
- Hide status text on mobile for better space usage

These changes improve code organization, reliability, and user experience by:
- Better separation of concerns
- More robust error handling
- Clearer connection status feedback
- Improved message persistence
- More maintainable WebSocket management
- Better mobile responsiveness

Breaking changes:
- Message handling moved to separate store
- WebSocket connections now managed through NostrWebSocketManager
- Encryption now handled through NostrEncryption service
2025-02-16 11:00:41 +01:00
be93965e13 fix: improve nostr message subscription reliability
- Add limit parameter to ensure historical messages are retrieved
- Remove premature subscription timeouts
- Add EOSE (End of Stored Events) handlers for better message tracking
- Keep subscriptions open even when no initial messages received
- Simplify subscription success logic
- Improve debug logging for subscription statesThis change helps ensure
messages persist across page refreshes andimproves the reliability of
message retrieval, particularly on mobiledevices.
2025-02-16 11:00:41 +01:00
d27f66e95d updates 2025-02-16 11:00:41 +01:00
d694f9b645 lots of login dialog and nostr subsription relate updates 2025-02-16 11:00:41 +01:00
8b3f1aa14b improve subscribe to messages 2025-02-16 11:00:41 +01:00
fcf052bf8a ui improvements 2025-02-16 11:00:41 +01:00
c7aa88bec6 init to refresh messages 2025-02-16 11:00:41 +01:00
231658b980 big milestone 2!!! 2025-02-16 11:00:41 +01:00
ac906ca6c9 big milestone! 2025-02-16 11:00:41 +01:00