Files
raucao a41ad8c99c
CI / Lint (pull_request) Successful in 1m14s
CI / Test (pull_request) Successful in 1m33s
Release Drafter / Update release notes draft (pull_request) Successful in 5s
Retry unresolved profiles
For now just with the same relays, in the future maybe with an extended
list
2026-09-17 20:20:23 +02:00

29 lines
879 B
JavaScript

import Route from '@ember/routing/route';
import { service } from '@ember/service';
export default class ActivityRoute extends Route {
@service mapUi;
@service nostrAuth;
@service activity;
activate() {
this.mapUi.showSidebar();
// Re-request profiles for senders that couldn't be resolved when the feed
// was first loaded (e.g. metadata published since then). No-op on the first
// entry, when there are no items yet.
void this.activity.retryUnresolvedProfiles();
}
setupController(controller, model) {
super.setupController(controller, model);
if (controller && controller.loadTask) {
controller.loadTask.perform(this.nostrAuth.pubkey);
}
}
deactivate() {
// Don't call activity.stop() — keep state alive when navigating to place
// details and back. The service's willDestroy() handles final cleanup.
}
}