applesauce-actions 0.0.0-next-20250618165207 → 0.0.0-next-20250703183032
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,10 +8,11 @@ import { GiftWrapBlueprint, WrappedMessageBlueprint, WrappedMessageReplyBlueprin
|
|
|
8
8
|
* @returns Signed gift wrapped messages to send
|
|
9
9
|
*/
|
|
10
10
|
export function SendWrappedMessage(participants, message, opts) {
|
|
11
|
-
return async function* ({ factory }) {
|
|
11
|
+
return async function* ({ factory, self }) {
|
|
12
12
|
const rumor = await factory.create(WrappedMessageBlueprint, participants, message, opts);
|
|
13
|
-
// Get the pubkeys to send this message to
|
|
14
|
-
const pubkeys = getConversationParticipants(rumor);
|
|
13
|
+
// Get the pubkeys to send this message to and ensure the sender is included
|
|
14
|
+
const pubkeys = new Set(getConversationParticipants(rumor));
|
|
15
|
+
pubkeys.add(self);
|
|
15
16
|
for (const pubkey of pubkeys) {
|
|
16
17
|
yield await factory.create(GiftWrapBlueprint, pubkey, rumor, opts);
|
|
17
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-actions",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250703183032",
|
|
4
4
|
"description": "A package for performing common nostr actions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"applesauce-core": "0.0.0-next-
|
|
36
|
-
"applesauce-factory": "
|
|
35
|
+
"applesauce-core": "0.0.0-next-20250703183032",
|
|
36
|
+
"applesauce-factory": "0.0.0-next-20250703183032",
|
|
37
37
|
"nostr-tools": "^2.13",
|
|
38
38
|
"rxjs": "^7.8.1"
|
|
39
39
|
},
|