@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/core/index.cjs
CHANGED
|
@@ -2723,7 +2723,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2723
2723
|
const chatFilter = new import_nostr_js_sdk.Filter();
|
|
2724
2724
|
chatFilter.kinds = [import_nostr_js_sdk.EventKinds.GIFT_WRAP];
|
|
2725
2725
|
chatFilter["#p"] = [nostrPubkey];
|
|
2726
|
-
chatFilter.since = dmSince;
|
|
2726
|
+
chatFilter.since = dmSince - TIMESTAMP_RANDOMIZATION;
|
|
2727
2727
|
this.chatSubscriptionId = this.nostrClient.subscribe(chatFilter, {
|
|
2728
2728
|
onEvent: (event) => {
|
|
2729
2729
|
logger.debug("Nostr", "Received chat event kind:", event.kind, "id:", event.id?.slice(0, 12));
|
|
@@ -2901,6 +2901,7 @@ var NostrTransportProvider = class _NostrTransportProvider {
|
|
|
2901
2901
|
|
|
2902
2902
|
// transport/MultiAddressTransportMux.ts
|
|
2903
2903
|
init_constants();
|
|
2904
|
+
var TIMESTAMP_RANDOMIZATION2 = 2 * 24 * 60 * 60;
|
|
2904
2905
|
var EVENT_KINDS2 = NOSTR_EVENT_KINDS;
|
|
2905
2906
|
var COMPOSING_INDICATOR_KIND2 = 25050;
|
|
2906
2907
|
var MultiAddressTransportMux = class {
|
|
@@ -3203,7 +3204,7 @@ var MultiAddressTransportMux = class {
|
|
|
3203
3204
|
const chatFilter = new import_nostr_js_sdk2.Filter();
|
|
3204
3205
|
chatFilter.kinds = [import_nostr_js_sdk2.EventKinds.GIFT_WRAP];
|
|
3205
3206
|
chatFilter["#p"] = allPubkeys;
|
|
3206
|
-
chatFilter.since = globalDmSince;
|
|
3207
|
+
chatFilter.since = globalDmSince - TIMESTAMP_RANDOMIZATION2;
|
|
3207
3208
|
this.chatSubscriptionId = this.nostrClient.subscribe(chatFilter, {
|
|
3208
3209
|
onEvent: (event) => {
|
|
3209
3210
|
this.handleEvent({
|