@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.cjs
CHANGED
|
@@ -11821,7 +11821,12 @@ var CommunicationsModule = class {
|
|
|
11821
11821
|
}
|
|
11822
11822
|
return;
|
|
11823
11823
|
}
|
|
11824
|
-
|
|
11824
|
+
const ownChainPubkey = this.deps?.identity.chainPubkey;
|
|
11825
|
+
if (ownChainPubkey) {
|
|
11826
|
+
const tp = msg.senderTransportPubkey;
|
|
11827
|
+
if (tp === ownChainPubkey) return;
|
|
11828
|
+
if (ownChainPubkey.length === 66 && (ownChainPubkey.startsWith("02") || ownChainPubkey.startsWith("03")) && tp === ownChainPubkey.slice(2)) return;
|
|
11829
|
+
}
|
|
11825
11830
|
if (this.messages.has(msg.id)) return;
|
|
11826
11831
|
const message = {
|
|
11827
11832
|
id: msg.id,
|