From 74d4cb555f7f0a10df8d832609d9481f8842c650 Mon Sep 17 00:00:00 2001 From: Kent Bull Date: Wed, 12 Feb 2025 15:39:48 -0500 Subject: [PATCH] fix: send exn for each recipient; no early return --- src/keri/app/exchanging.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/keri/app/exchanging.ts b/src/keri/app/exchanging.ts index eb7b41ce..d195dc97 100644 --- a/src/keri/app/exchanging.ts +++ b/src/keri/app/exchanging.ts @@ -79,6 +79,7 @@ export class Exchanges { embeds: Dict, recipients: string[] ): Promise { + const results = []; for (const recipient of recipients) { const [exn, sigs, atc] = await this.createExchangeMessage( sender, @@ -87,15 +88,17 @@ export class Exchanges { embeds, recipient ); - return await this.sendFromEvents( + const result = await this.sendFromEvents( name, topic, exn, sigs, atc, - recipients + [recipient] ); + results.push(result); } + return results; } /**