From 54e7ebd905146db664e08999942635ab0ec09123 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 22 May 2024 16:34:37 +0200 Subject: [PATCH] fix(apb): extract correctly actor ids from addressing --- apb/src/target.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apb/src/target.rs b/apb/src/target.rs index 56108860..1e2866e7 100644 --- a/apb/src/target.rs +++ b/apb/src/target.rs @@ -8,10 +8,10 @@ pub trait Addressed { impl Addressed for T { fn addressed(&self) -> Vec { - let mut to : Vec = self.to().map(|x| x.href().to_string()).collect(); - to.append(&mut self.bto().map(|x| x.href().to_string()).collect()); - to.append(&mut self.cc().map(|x| x.href().to_string()).collect()); - to.append(&mut self.bcc().map(|x| x.href().to_string()).collect()); + let mut to : Vec = self.to().ids(); + to.append(&mut self.bto().ids()); + to.append(&mut self.cc().ids()); + to.append(&mut self.bcc().ids()); to } }