Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add Issue::is_commented_by()
Matthias Beyer committed 9 months ago
commit 950734e3466f8fef05478735aa5c33d2f0cbf423
parent dca7dc816db726184dba8445935268a75187127f
1 file changed +4 -0
modified crates/radicle/src/cob/issue.rs
@@ -317,6 +317,10 @@ impl Issue {
        self.thread.comments()
    }

+
    pub fn is_commented_by(&self, commenter: &Did) -> bool {
+
        self.thread.has_participant(*commenter.as_key())
+
    }
+

    /// Get replies to a specific comment.
    pub fn replies_to<'a>(
        &'a self,