Remove delegate names from identity doc

We are working on other mechanisms to help identify keys, and this
is just redundant.

Also update some of the CLI examples to create a canonical example
for documentation.

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
Alexis Sellier
2022-12-07 12:16:00 +01:00
parent b22c152ed9
commit 864f0022e2
+1 -1
View File
@@ -40,7 +40,7 @@ async fn delegates_projects_handler(
let Ok((_, head)) = repo.head() else { return None };
let Ok(Doc { payload, delegates, .. }) = repo.project_of(ctx.profile.id()) else { return None };
if !delegates.iter().any(|d| d.id == delegate) {
if !delegates.iter().any(|d| *d == delegate) {
return None;
}