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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is an Angular 20 project, make sure to always use signals and effects. Also always use most modern TypeScript, with async/await.
This is an Angular 19 project, make sure to always use signals and effects. Also always use most modern TypeScript, with async/await.

Make sure to use new flow syntax of latest Angular, which is @if instead of *ngIf, @for instead of *ngFor, and @let instead of *ngLet.

Expand All @@ -23,6 +23,8 @@ box-shadow: var(--mat-sys-level5)

Never set the font-weight in CSS. The current font for headlines does not support different font weights.

Make sure you don't use outdated variables for Angular Material, such as "--mat-sys-color-surface-container-high" and "--mat-sys-color-primary-container" and "--mat-sys-color-on-primary-container".

I'm using a Windows computer, so make sure that paths and commands are compatible with Windows.

When waiting for background terminal output for "npm start", wait another 3 extra seconds to ensure build completes.
Expand Down
9 changes: 6 additions & 3 deletions src/app/components/user-profile/user-profile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,16 @@ export class UserProfileComponent implements AfterViewInit, OnDestroy {

constructor() {
// Set up scroll detection
this.setupScrollDetection();

// Set up an effect to watch for changes to npub input
this.setupScrollDetection(); // Set up an effect to watch for changes to npub input
effect(() => {
const pubkey = this.pubkey();

if (pubkey) {
// If the pubkey changed, reset the profile data to force reload
if (this.publicKey && this.publicKey !== pubkey) {
this.profile.set(null);
}

this.publicKey = this.pubkey();
// console.debug('LOCATION 1:', pubkey);
const npub = this.utilities.getNpubFromPubkey(pubkey);
Expand Down
Loading
0