This commit is contained in:
2026-08-31 15:11:32 +07:00
parent a2ef6bb1a3
commit 1dae0cb4b5
5 changed files with 364 additions and 48 deletions
+8 -2
View File
@@ -98,8 +98,14 @@ impl RepoListStore {
}
}
BackendEvent::Published(event) => {
event.kind == Kind::GitRepoAnnouncement
&& this.author.is_none_or(|a| a == event.pubkey)
let announcement = event.kind == Kind::GitRepoAnnouncement
&& this.author.is_none_or(|a| a == event.pubkey);
// Locally published deletions (e.g. deleting a repo)
// are already in the local database; refresh so they
// take effect immediately, like relay deletions.
let deletion =
event.kind == Kind::EventDeletion || event.kind == Kind::RequestToVanish;
announcement || deletion
}
BackendEvent::Synced | BackendEvent::SyncProgress { .. } => true,
_ => false,