@unicitylabs/sphere-sdk 0.6.8-dev.3 → 0.6.9
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.
- package/dist/core/index.cjs +2 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +2 -6
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +1 -3
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +1 -3
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +1 -3
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js +1 -3
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2128,9 +2128,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
try {
|
|
2130
2130
|
const pm = NIP17.unwrap(event, this.keyManager);
|
|
2131
|
-
|
|
2132
|
-
this.updateLastDmEventTimestamp(event.created_at);
|
|
2133
|
-
}
|
|
2131
|
+
this.updateLastDmEventTimestamp(Math.floor(Date.now() / 1e3));
|
|
2134
2132
|
logger.debug("Nostr", "Gift wrap unwrapped, sender:", pm.senderPubkey?.slice(0, 16), "kind:", pm.kind);
|
|
2135
2133
|
if (pm.senderPubkey === this.keyManager.getPublicKeyHex()) {
|
|
2136
2134
|
try {
|
|
@@ -3203,9 +3201,7 @@ var MultiAddressTransportMux = class {
|
|
|
3203
3201
|
for (const entry of this.addresses.values()) {
|
|
3204
3202
|
try {
|
|
3205
3203
|
const pm = NIP172.unwrap(event, entry.keyManager);
|
|
3206
|
-
|
|
3207
|
-
this.updateLastDmEventTimestamp(entry, event.created_at);
|
|
3208
|
-
}
|
|
3204
|
+
this.updateLastDmEventTimestamp(entry, Math.floor(Date.now() / 1e3));
|
|
3209
3205
|
logger.debug("Mux", `Gift wrap decrypted by address ${entry.index}, sender: ${pm.senderPubkey?.slice(0, 16)}`);
|
|
3210
3206
|
if (pm.senderPubkey === entry.nostrPubkey) {
|
|
3211
3207
|
try {
|