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 8 months ago
commit d2b3a36f03ae18415a741c6c05d8888372694597
parent 8240fde2e96e65712c2386eac8439c4d9a02f831
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,