8000 Direct messages by sondreb · Pull Request #42 · nostria-app/nostria · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Direct messages #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 13, 2025
Merged

Direct messages #42

merged 14 commits into from
Jun 13, 2025

Conversation

sondreb
Copy link
Collaborator
@sondreb sondreb commented Jun 13, 2025

No description provided.

sondreb added 13 commits June 11, 2025 15:22
- Work-in-progress.
…ryption

- Added MessagingService to manage direct messages, including loading chats and processing incoming messages.
- Introduced interfaces for Chat and DirectMessage to structure message data.
- Integrated EncryptionService for message decryption using NIP-04 and NIP-17 protocols.
- Implemented a decryption queue to handle message decryption sequentially.
- Enhanced auto-decrypt functionality to support different encryption types.
- Added unit tests for MessagingService to ensure proper functionality.
…t out min-width properties in chat list container
…ing. .chat-content-container needs width 100% to ensure no horizontal scrolling.
@sondreb sondreb requested a review from Copilot June 13, 2025 17:28
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces direct messaging functionality by updating services for relay and encryption, revamping message UI components, and adding tests.

  • Updated user and account relay services to decouple relay URL retrieval.
  • Enhanced encryption service handling legacy (NIP-04) and modern (NIP-44) encryption algorithms.
  • Modified messages components (SCSS and HTML) to align with new Angular flow syntax and UI requirements, and updated copilot instructions regarding Angular version and Angular Material variables.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/app/services/user-relay.service.ts Updated relay URL fetching and added a new publish method for events.
src/app/services/nostr.service.ts Removed redundant account relay computations and debugger statements.
src/app/services/messaging.service.spec.ts Added basic test for MessagingService creation.
src/app/services/encryption.service.ts Introduced encryption and decryption methods for both legacy and modern algorithms.
src/app/services/account-relay.service.ts Added methods for querying and subscribing to Nostr events via account relays.
src/app/pages/messages/messages.component.scss Adjusted layout dimensions and styling updates for messages and warnings.
src/app/pages/messages/messages.component.html Updated template syntax and improved chat list and message input structure.
src/app/components/user-profile/user-profile.component.ts Minor refactoring for handling pubkey changes using effects.
.github/copilot-instructions.md Revised Angular project version and Angular Material CSS variable usage notes.
Comments suppressed due to low confidence (1)

.github/copilot-instructions.md:1

  • The copilot instructions now indicate Angular 19, which conflicts with the custom coding guidelines that specify Angular 20. Update the instructions to reflect the correct Angular version to avoid confusion during development.
This is an Angular 19 project, make sure to always use signals and effects. Also always use most modern TypeScript, with async/await.

@sondreb sondreb merged commit b34ce90 into main Jun 13, 2025
@sondreb sondreb deleted the direct-messages branch June 13, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0