Skip to content

Commit 345e664

Browse files
committed
fix: send exn for each recipient; no early return
1 parent 1e451d1 commit 345e664

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/keri/app/exchanging.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export class Exchanges {
7979
embeds: Dict<any>,
8080
recipients: string[]
8181
): Promise<any> {
82+
const results = [];
8283
for (const recipient of recipients) {
8384
const [exn, sigs, atc] = await this.createExchangeMessage(
8485
sender,
@@ -87,15 +88,17 @@ export class Exchanges {
8788
embeds,
8889
recipient
8990
);
90-
return await this.sendFromEvents(
91+
const result = await this.sendFromEvents(
9192
name,
9293
topic,
9394
exn,
9495
sigs,
9596
atc,
96-
recipients
97+
[recipient]
9798
);
99+
results.push(result);
98100
}
101+
return results;
99102
}
100103

101104
/**

0 commit comments

Comments
 (0)