@unicitylabs/sphere-sdk 0.6.13-dev.2 → 0.6.13
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 +3 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +3 -2
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +1 -1
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +1 -1
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +1 -1
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js +1 -1
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2821,7 +2821,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2821
2821
|
const chatFilter = new import_nostr_js_sdk.Filter();
|
|
2822
2822
|
chatFilter.kinds = [import_nostr_js_sdk.EventKinds.GIFT_WRAP];
|
|
2823
2823
|
chatFilter["#p"] = [nostrPubkey];
|
|
2824
|
-
chatFilter.since = dmSince;
|
|
2824
|
+
chatFilter.since = dmSince - TIMESTAMP_RANDOMIZATION;
|
|
2825
2825
|
this.chatSubscriptionId = this.nostrClient.subscribe(chatFilter, {
|
|
2826
2826
|
onEvent: (event) => {
|
|
2827
2827
|
logger.debug("Nostr", "Received chat event kind:", event.kind, "id:", event.id?.slice(0, 12));
|
|
@@ -2999,6 +2999,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2999
2999
|
|
|
3000
3000
|
// transport/MultiAddressTransportMux.ts
|
|
3001
3001
|
init_constants();
|
|
3002
|
+
var TIMESTAMP_RANDOMIZATION2 = 2 * 24 * 60 * 60;
|
|
3002
3003
|
var EVENT_KINDS2 = NOSTR_EVENT_KINDS;
|
|
3003
3004
|
var COMPOSING_INDICATOR_KIND2 = 25050;
|
|
3004
3005
|
var MultiAddressTransportMux = class {
|
|
@@ -3301,7 +3302,7 @@ var MultiAddressTransportMux = class {
|
|
|
3301
3302
|
const chatFilter = new import_nostr_js_sdk2.Filter();
|
|
3302
3303
|
chatFilter.kinds = [import_nostr_js_sdk2.EventKinds.GIFT_WRAP];
|
|
3303
3304
|
chatFilter["#p"] = allPubkeys;
|
|
3304
|
-
chatFilter.since = globalDmSince;
|
|
3305
|
+
chatFilter.since = globalDmSince - TIMESTAMP_RANDOMIZATION2;
|
|
3305
3306
|
this.chatSubscriptionId = this.nostrClient.subscribe(chatFilter, {
|
|
3306
3307
|
onEvent: (event) => {
|
|
3307
3308
|
this.handleEvent({
|