Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
fix: Use `radicle::Node::announce_refs_for`
Lorenz Leutgeb committed 1 month ago
commit d8cde006e97279f04cf29f04bbcda558d10fc665
parent a7fc588
3 files changed +5 -5
modified crates/radicle-types/src/traits/issue.rs
@@ -116,7 +116,7 @@ pub trait IssuesMut: Profile {
        )?;

        if opts.announce() {
-
            if let Err(e) = node.announce_refs(rid) {
+
            if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
                log::error!("Not able to announce changes: {}", e)
            }
        }
@@ -188,7 +188,7 @@ pub trait IssuesMut: Profile {
        }

        if opts.announce() {
-
            if let Err(e) = node.announce_refs(rid) {
+
            if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
                log::error!("Not able to announce changes: {}", e)
            }
        }
modified crates/radicle-types/src/traits/patch.rs
@@ -292,7 +292,7 @@ pub trait PatchesMut: Profile {
        }

        if opts.announce() {
-
            if let Err(e) = node.announce_refs(rid) {
+
            if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
                log::error!("Not able to announce changes: {}", e)
            }
        }
modified crates/radicle-types/src/traits/thread.rs
@@ -119,7 +119,7 @@ pub trait Thread: Profile {
        )?;

        if opts.announce() {
-
            if let Err(e) = node.announce_refs(rid) {
+
            if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
                log::error!("Not able to announce changes: {}", e)
            }
        }
@@ -162,7 +162,7 @@ pub trait Thread: Profile {
        )?;

        if opts.announce() {
-
            if let Err(e) = node.announce_refs(rid) {
+
            if let Err(e) = node.announce_refs_for(rid, [profile.public_key]) {
                log::error!("Not able to announce changes: {}", e)
            }
        }