@unicitylabs/sphere-sdk 0.6.6 → 0.6.8-dev.1
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 +6 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +6 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.js
CHANGED
|
@@ -11741,7 +11741,12 @@ var CommunicationsModule = class {
|
|
|
11741
11741
|
}
|
|
11742
11742
|
return;
|
|
11743
11743
|
}
|
|
11744
|
-
|
|
11744
|
+
const ownChainPubkey = this.deps?.identity.chainPubkey;
|
|
11745
|
+
if (ownChainPubkey) {
|
|
11746
|
+
const tp = msg.senderTransportPubkey;
|
|
11747
|
+
if (tp === ownChainPubkey) return;
|
|
11748
|
+
if (ownChainPubkey.length === 66 && (ownChainPubkey.startsWith("02") || ownChainPubkey.startsWith("03")) && tp === ownChainPubkey.slice(2)) return;
|
|
11749
|
+
}
|
|
11745
11750
|
if (this.messages.has(msg.id)) return;
|
|
11746
11751
|
const message = {
|
|
11747
11752
|
id: msg.id,
|