Nostr Relay app doesn’t auto-sync on startup (manual npub re-entry required)


:wrench: [BUG] Nostr Relay app doesn’t auto-sync on startup (manual npub re-entry required)

Hi all,
I noticed that the Nostr Relay app on Umbrel doesn’t seem to auto-sync on startup.
Here’s what I found so far:


:puzzle_piece: Bug Report: No automatic sync on Nostr Relay app startup

Summary:
When starting the Nostr Relay app on Umbrel, only an outdated snapshot of Nostr posts is shown.
The feed updates only after manually deleting and re-entering the npub in the “Sync from public relays” field.
Until that manual action, no synchronization with public relays happens automatically.


:repeat_button: Steps to reproduce

  1. Start the Nostr Relay app on Umbrel

  2. Wait for the feed to load

  3. Observe that only an older / incomplete set of events appears

  4. Delete and re-enter your npub in the “Sync from public relays” field

  5. The app immediately starts syncing and displays the latest Nostr events


:white_check_mark: Expected behavior

The app should automatically trigger a sync with public relays on startup so that the latest events are displayed without manual action.

:lady_beetle: Actual behavior

No automatic sync occurs on startup.
The synchronization only starts after manually re-entering the npub.


:gear: Environment

  • Umbrel OS: (please fill in your version)

  • Nostr Relay App: 1.2.0

  • Backend: nostr-rs-relay

  • Logs: No errors or warnings — only info messages such as:

    INFO nostr_rs_relay::db: persisted event ...
    INFO nostr_rs_relay::server: stopping client connection ...
    
    

    → The relay runs correctly, but the automatic sync trigger does not initialize.


:brain: Additional notes

It seems that the “sync from public relays” process is only started when the npub field changes,
not when the app is launched.
This behavior is reproducible and likely caused by a missing or inactive trigger in the frontend logic.